<?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 Pre Code for Guest - wpForo Syntax Highlighter				            </title>
            <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 22 Jul 2026 17:04:37 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Hide Pre Code for Guest</title>
                        <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27614</link>
                        <pubDate>Tue, 09 Mar 2021 16:09:02 +0000</pubDate>
                        <description><![CDATA[Hi @Tom
thank you very much, that works perfectly 😀]]></description>
                        <content:encoded><![CDATA[<p>Hi @Tom</p>
<p><br />thank you very much, that works perfectly 😀 </p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-syntax-highlighter/">wpForo Syntax Highlighter</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27614</guid>
                    </item>
				                    <item>
                        <title>RE: Hide Pre Code for Guest</title>
                        <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27604</link>
                        <pubDate>Tue, 09 Mar 2021 10:10:07 +0000</pubDate>
                        <description><![CDATA[@tutrix,
Try this. Put it in your current active WordPress theme functions.php file:
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_hide_pre_for_guests&#039;, 10);function wpforo_hide_pre_for_guest...]]></description>
                        <content:encoded><![CDATA[<p>@tutrix,</p>
<p>Try this. Put it in your current active WordPress theme functions.php 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_pre_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_pre_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;pre*&gt;.+?&lt;\/pre&gt;|ism'</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>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-syntax-highlighter/">wpForo Syntax Highlighter</category>                        <dc:creator>Tom</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27604</guid>
                    </item>
				                    <item>
                        <title>RE: Hide Pre Code for Guest</title>
                        <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27569</link>
                        <pubDate>Mon, 08 Mar 2021 04:31:58 +0000</pubDate>
                        <description><![CDATA[Posted by: @tomson 
Haven&#039;t you?

Unfortunately no, this is with CSS display: none; realizedThe code can be made visible via the Browser Inspector]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="1" data-postid="27566" data-mention="tomson">
<div class="wpforo-post-quote-author"><strong> Posted by: @tomson </strong></div>
<p>Haven't you?</p>
</blockquote>
<p>Unfortunately no, this is with CSS display: none; realized<br />The code can be made visible via the Browser Inspector</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-syntax-highlighter/">wpForo Syntax Highlighter</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27569</guid>
                    </item>
				                    <item>
                        <title>RE: Hide Pre Code for Guest</title>
                        <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27566</link>
                        <pubDate>Sun, 07 Mar 2021 20:50:16 +0000</pubDate>
                        <description><![CDATA[Hi @tutrix,
As far as I see you&#039;ve already solved this task. Haven&#039;t you?]]></description>
                        <content:encoded><![CDATA[<p>Hi @tutrix,</p>
<p>As far as I see you've already solved this task. Haven't you?</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-syntax-highlighter/">wpForo Syntax Highlighter</category>                        <dc:creator>Tom</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27566</guid>
                    </item>
				                    <item>
                        <title>Hide Pre Code for Guest</title>
                        <link>https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27547</link>
                        <pubDate>Sat, 06 Mar 2021 10:27:38 +0000</pubDate>
                        <description><![CDATA[Is there a way to hide pre code for guests
Example via CSS class &quot;.logged-in&quot;
Pre Code display:none; for Guest 
but &quot;display: none;&quot; can be deactivated in the CSS by the guests]]></description>
                        <content:encoded><![CDATA[<p>Is there a way to hide pre code for guests</p>
<p>Example via CSS class ".logged-in"</p>
<p><a title="Pre Code display:none; for Guest " href="https://www.tutrix.de/forum/wpforo-forum-addons-anpassen-integrieren/wpforo-custom-fields-benutzerdefinierte-felder-im-beitrag/" target="true">Pre Code display:none; for Guest </a></p>
<p>but "display: none;" can be deactivated in the CSS by the guests</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-syntax-highlighter/">wpForo Syntax Highlighter</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-syntax-highlighter/hide-pre-code-for-guest/#post-27547</guid>
                    </item>
							        </channel>
        </rss>
		