<?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>
									How to treat logged in users as guest? - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 07 Nov 2026 14:17:41 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5765</link>
                        <pubDate>Fri, 04 Dec 2020 07:41:31 +0000</pubDate>
                        <description><![CDATA[Thank you for taking a time and share the solution We really appreciate it.]]></description>
                        <content:encoded><![CDATA[Thank you for taking a time and share the solution We really appreciate it.]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5765</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5755</link>
                        <pubDate>Thu, 03 Dec 2020 16:24:40 +0000</pubDate>
                        <description><![CDATA[Actually I forgot I wrote this yesterday. Here is some code that makes users post as anonymous unless they have a certain role. Hopefully it helps someone in the future. 
 

add_filter(&quot;w...]]></description>
                        <content:encoded><![CDATA[<p>Actually I forgot I wrote this yesterday. Here is some code that makes users post as anonymous unless they have a certain role. Hopefully it helps someone in the future. </p>
<p> </p>
<div>
<pre><span>add_filter</span><span>(</span><span>"</span><span>wpdiscuz_comment_author</span><span>"</span><span>,</span><span> </span><span>function</span><span> </span><span>($</span><span>authorName</span><span>,</span><span> </span><span>$</span><span>comment</span><span>)</span><span> </span><span>{</span><br /><br /><span>    </span><span>$</span><span>allowed_roles </span><span>=</span><span> </span><span>array</span><span>(</span><span>'</span><span>editor</span><span>'</span><span>,</span><span>'</span><span>administrator</span><span>'</span><span>,</span><span>'</span><span>author</span><span>'</span><span>,</span><span>'</span><span>super admin</span><span>'</span><span>);</span><br /><br /><span>    </span><span>$</span><span>user_id   </span><span>=</span><span> </span><span>$</span><span>comment</span><span>-&gt;</span><span>user_id</span><span>;</span><br /><br /><span>    </span><span>$</span><span>user_roles </span><span>=</span><span> </span><span>get_userdata</span><span>($</span><span>user_id</span><span>);</span><br /><br /><span>    </span><span>if</span><span>(</span><span>is_object</span><span>($</span><span>user_roles</span><span>)){</span><br /><br /><span>        </span><span>if</span><span>(!</span><span>array_intersect</span><span>($</span><span>user_roles</span><span>-&gt;</span><span>roles</span><span>,</span><span> </span><span>$</span><span>allowed_roles</span><span>)){</span><br /><br /><span>            </span><span>$</span><span>authorName </span><span>=</span><span> </span><span>'</span><span>Anonymous</span><span>'</span><span>;</span><br /><br /><span>        </span><span>}</span><br /><br /><span>    </span><span>}</span><br /><br /><span>    </span><span>return</span><span> </span><span>$</span><span>authorName</span><span>;</span><br /><br /><span>},</span><span> </span><span>10</span><span>,</span><span> </span><span>2</span><span>);</span></pre>
</div>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>cortega</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5755</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5754</link>
                        <pubDate>Thu, 03 Dec 2020 16:18:35 +0000</pubDate>
                        <description><![CDATA[@orakel You&#039;re fine. I really appreciate you trying to help. Have a great one!]]></description>
                        <content:encoded><![CDATA[@orakel You're fine. I really appreciate you trying to help. Have a great one!]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>cortega</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5754</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5753</link>
                        <pubDate>Thu, 03 Dec 2020 16:17:57 +0000</pubDate>
                        <description><![CDATA[@asti Sure! I think I can make that work. Thanks for the help.
If I figure a solution out I&#039;ll post it here, in case someone in the future needs this. I seem to be making some progress usin...]]></description>
                        <content:encoded><![CDATA[<p>@asti Sure! I think I can make that work. Thanks for the help.</p>
<p>If I figure a solution out I'll post it here, in case someone in the future needs this. I seem to be making some progress using the "preprocess_comment" filter.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>cortega</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5753</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5738</link>
                        <pubDate>Thu, 03 Dec 2020 09:12:12 +0000</pubDate>
                        <description><![CDATA[@cortega,
We&#039;re really sorry, but wpDiscuz doesn&#039;t show the name and email fields if the user is already logged in. There is no way to do it. 

Basically trying to make everyone in the co...]]></description>
                        <content:encoded><![CDATA[<p>@cortega,</p>
<p>We're really sorry, but wpDiscuz doesn't show the name and email fields if the user is already logged in. There is no way to do it. </p>
<blockquote>
<p><span>Basically trying to make everyone in the comments anonymous, while they are logged in. </span></p>
</blockquote>
<p>In case if you want to make all comments made by both registered users' and guests as anonymous, let us know. We'll provide you a JS code that will replace the names of the commenters with "Anonymous" phrase.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5738</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5732</link>
                        <pubDate>Wed, 02 Dec 2020 23:15:19 +0000</pubDate>
                        <description><![CDATA[I cant find a code at the moment, but i am sure, this would be 2 or 3 lines to rename all roles to &quot;guest&quot; and remove the labels.
Sorry, i am sure Asti will help fast
 
Orakel]]></description>
                        <content:encoded><![CDATA[<p>I cant find a code at the moment, but i am sure, this would be 2 or 3 lines to rename all roles to "guest" and remove the labels.</p>
<p>Sorry, i am sure Asti will help fast</p>
<p> </p>
<p>Orakel</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Orakel</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5732</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5731</link>
                        <pubDate>Wed, 02 Dec 2020 23:00:45 +0000</pubDate>
                        <description><![CDATA[Posted by: @cortega 
Basically trying to make everyone in the comments anonymous, while they are logged in. 

Ah ok, i understand now.....sorry for the mistake...i will look if i have a s...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="46478" data-postid="5730" data-mention="cortega">
<div class="wpforo-post-quote-author"><strong> Posted by: @cortega </strong></div>
<p>Basically trying to make everyone in the comments anonymous, while they are logged in. </p>
</blockquote>
<p>Ah ok, i understand now.....sorry for the mistake...i will look if i have a simple code for that. Asti helps me so much and sent me a lot of codes.</p>
<p>Maybe he is faster, but i try =)</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Orakel</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5731</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5730</link>
                        <pubDate>Wed, 02 Dec 2020 22:38:25 +0000</pubDate>
                        <description><![CDATA[Posted by: @orakel 
Isn´t somethink like &quot;dont allow registration&quot;?

Not sure what you mean ?
Trying to basically get the form, that in the file Form.php is labled under classname &quot;.wpd-...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="20985" data-postid="5728" data-mention="orakel">
<div class="wpforo-post-quote-author"><strong> Posted by: @orakel </strong></div>
<p>Isn´t somethink like "dont allow registration"?</p>
</blockquote>
<p>Not sure what you mean ?</p>
<p>Trying to basically get the form, that in the file Form.php is labled under classname ".wpd-form-foot" to always show up, and actually work. I can get it to show up, when someone is logged in, but filling it out and submitting it doesn't actually display the selected name.</p>
<p> </p>
<p>Basically trying to make everyone in the comments anonymous, while they are logged in. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>cortega</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5730</guid>
                    </item>
				                    <item>
                        <title>RE: How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5728</link>
                        <pubDate>Wed, 02 Dec 2020 21:16:02 +0000</pubDate>
                        <description><![CDATA[Isn´t somethink like &quot;dont allow registration&quot;?]]></description>
                        <content:encoded><![CDATA[<p>Isn´t somethink like "dont allow registration"?</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Orakel</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5728</guid>
                    </item>
				                    <item>
                        <title>How to treat logged in users as guest?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5727</link>
                        <pubDate>Wed, 02 Dec 2020 21:11:23 +0000</pubDate>
                        <description><![CDATA[I have a weird request, and don&#039;t know where to go in the code to make this happen.
How can I have all users treated as a guest, when they post a comment, so they are allowed to choose thei...]]></description>
                        <content:encoded><![CDATA[<p>I have a weird request, and don't know where to go in the code to make this happen.</p>
<p>How can I have all users treated as a guest, when they post a comment, so they are allowed to choose their own name, and e-mail at the time of posting something?</p>
<p>Thanks for the help.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>cortega</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-treat-logged-in-users-as-guest/#post-5727</guid>
                    </item>
							        </channel>
        </rss>
		