<?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 hide the comment form for a specific user instead of user role? - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 17 Aug 2026 20:29:34 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4649</link>
                        <pubDate>Thu, 01 Oct 2020 08:23:41 +0000</pubDate>
                        <description><![CDATA[@asti
I missed that hook. I think It will work. Thank you very much.]]></description>
                        <content:encoded><![CDATA[<p>@asti</p>
<p>I missed that hook. I think It will work. Thank you very much. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>faltushamim</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4649</guid>
                    </item>
				                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4648</link>
                        <pubDate>Thu, 01 Oct 2020 08:16:42 +0000</pubDate>
                        <description><![CDATA[@faltushamim,
the hook you can use is provided below:]]></description>
                        <content:encoded><![CDATA[<p>@faltushamim,</p>
<p>the hook you can use is provided below: </p>
<p>https://wpdiscuz.com/docs/codex/filters/wpdiscuz_form_render/</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-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4648</guid>
                    </item>
				                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4647</link>
                        <pubDate>Thu, 01 Oct 2020 08:12:46 +0000</pubDate>
                        <description><![CDATA[I do know that I can achieve by following your suggestion. In our case we need a way to to hide the form programmatically. If we have a filter in the line that I showed, we can do that easil...]]></description>
                        <content:encoded><![CDATA[<p>I do know that I can achieve by following your suggestion. In our case we need a way to to hide the form programmatically. If we have a filter in the line that I showed, we can do that easily without modifying the wpdiscuz plugin.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>faltushamim</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4647</guid>
                    </item>
				                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4646</link>
                        <pubDate>Thu, 01 Oct 2020 08:06:31 +0000</pubDate>
                        <description><![CDATA[@faltushamim,
We may suggest the following solution:

Install some user role creator plugin,
Create some new user role, e.g. &quot;Restrict comment&quot;
Change those users&#039; user role to &quot;Restric...]]></description>
                        <content:encoded><![CDATA[<p>@faltushamim,</p>
<p>We may suggest the following solution:</p>
<ul>
<li>Install some user role creator plugin,</li>
<li>Create some new user role, e.g. "<span style="color: #ff0000"><em><strong>Restrict comment</strong></em></span>"</li>
<li>Change those users' user role to "<span style="color: #ff0000"><em><strong>Restrict comment</strong></em></span>" </li>
<li>Then hide the comment form for this user role in wpDiscuz plugin settings. </li>
</ul>]]></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-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4646</guid>
                    </item>
				                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4644</link>
                        <pubDate>Thu, 01 Oct 2020 07:57:14 +0000</pubDate>
                        <description><![CDATA[We have some user permission system. Some users can post only public comments and some can post only private comments. We need a way to hide the comment form only from specific users. So the...]]></description>
                        <content:encoded><![CDATA[<p>We have some user permission system. Some users can post only public comments and some can post only private comments. We need a way to hide the comment form only from specific users. So the users can't see the submission form but can see the comments. If I follow your suggestion then the whole comment system will be hidden which is not the thing we want.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>faltushamim</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4644</guid>
                    </item>
				                    <item>
                        <title>RE: How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4641</link>
                        <pubDate>Thu, 01 Oct 2020 07:51:37 +0000</pubDate>
                        <description><![CDATA[@faltushamim,
You should add the custom code in the theme template files and not call the comments_template() function for the current user.]]></description>
                        <content:encoded><![CDATA[<p><span>@faltushamim,</span></p>
<p>You should add the custom code in the theme template files and not call the <a href="https://developer.wordpress.org/reference/functions/comments_template/" target="true">comments_template()</a> function for the current user. </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-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4641</guid>
                    </item>
				                    <item>
                        <title>How to hide the comment form for a specific user instead of user role?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4634</link>
                        <pubDate>Wed, 30 Sep 2020 17:22:34 +0000</pubDate>
                        <description><![CDATA[We are trying to modify the plugin functionality. We don&#039;t find any hook or filter to disable the comment form for a specific user.
 
If we add a filter here then we can achieve what we wa...]]></description>
                        <content:encoded><![CDATA[<p>We are trying to modify the plugin functionality. We don't find any hook or filter to disable the comment form for a specific user.</p>
<p> </p>
<p>If we add a filter <a href="https://gist.github.com/shamimmoeen/89dd14a989aa2c414731286d501903ba#file-form-php-L1273" target="true">here</a> then we can achieve what we want.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>faltushamim</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-hide-the-comment-form-for-a-specific-user-instead-of-user-role/#post-4634</guid>
                    </item>
							        </channel>
        </rss>
		