<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									hide links for guests - General Discussions				            </title>
            <link>https://wpforo.com/community/general-discussions/hide-links-for-guests/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 18 Aug 2026 02:47:58 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: hide links for guests</title>
                        <link>https://wpforo.com/community/general-discussions/hide-links-for-guests/#post-51489</link>
                        <pubDate>Fri, 05 Mar 2021 05:38:16 +0000</pubDate>
                        <description><![CDATA[Hi @parsa,
You should use this small hook code in your current active WordPress theme&#039;s functions.php file:
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_hide_links_for_guests&#039;, 10);function ...]]></description>
                        <content:encoded><![CDATA[<p>Hi @parsa,</p>
<p>You should use this small hook code in your current active WordPress theme's <span style="color: #ff0000">functions.php</span> file:</p>
<pre style="color: #000000;font-size: 12.0pt" contenteditable="false"><span style="color: #0000e5;font-style: italic">add_filter</span>(<span style="color: #c64741">'wpforo_content_after'</span><span style="color: #000080">, </span><span style="color: #c64741">'wpforo_hide_links_for_guests'</span><span style="color: #000080">, 10</span>)<span style="color: #313131">;<br /></span><span style="color: #008d00;font-weight: bold">function </span><span style="color: #808080;font-weight: bold">wpforo_hide_links_for_guests</span>( <span style="color: #4985c9;font-weight: bold">$content </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">    </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">current_user_groupid </span><span style="color: #000080">=== 4 </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">        </span><span style="color: #4985c9;font-weight: bold">$content </span><span style="color: #000080">= </span><span style="color: #0000e5;font-style: italic">preg_replace</span>(<span style="color: #c64741">'|&lt;a+href=+&gt;+&lt;\/a&gt;|im'</span><span style="color: #000080">, </span><span style="color: #c64741">'&lt;a href="#" rel="nofollow"&gt;&lt;/a&gt;'</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$content</span>)<span style="color: #313131">;<br /></span><span style="color: #313131">    </span><span style="color: #5163ac">}<br /></span><span style="color: #5163ac">   </span><span style="color: #008d00;font-weight: bold">return </span><span style="color: #4985c9;font-weight: bold">$content</span><span style="color: #313131">;<br /></span><span style="color: #5163ac">}</span></pre>
<p>Here is a good article how to add such codes to the website in case you cannot add it in the functions.php file: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/hide-links-for-guests/#post-51489</guid>
                    </item>
				                    <item>
                        <title>hide links for guests</title>
                        <link>https://wpforo.com/community/general-discussions/hide-links-for-guests/#post-51472</link>
                        <pubDate>Thu, 04 Mar 2021 11:03:32 +0000</pubDate>
                        <description><![CDATA[What is the simple way to hide links for guests in wpforo?]]></description>
                        <content:encoded><![CDATA[<p>What is the simple way to hide links for guests in wpforo?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>parsa</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/hide-links-for-guests/#post-51472</guid>
                    </item>
							        </channel>
        </rss>
		