<?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>
									if comment author is admin add role class to &quot;wpd-comment-wrap&quot; - wpDiscuz Integration				            </title>
            <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 09 Nov 2026 11:22:06 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: if comment author is admin add role class to &quot;wpd-comment-wrap&quot;</title>
                        <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15727</link>
                        <pubDate>Fri, 29 Jul 2022 07:46:34 +0000</pubDate>
                        <description><![CDATA[@inumedia,
The new version is ready.]]></description>
                        <content:encoded><![CDATA[<p>@inumedia,</p>
<p>The new version is ready. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/wpdiscuz-integration/">wpDiscuz Integration</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15727</guid>
                    </item>
				                    <item>
                        <title>RE: if comment author is admin add role class to &quot;wpd-comment-wrap&quot;</title>
                        <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15571</link>
                        <pubDate>Tue, 12 Jul 2022 14:12:28 +0000</pubDate>
                        <description><![CDATA[@inumedia,
Please remove the code provided in the previous post and add this one: 
add_filter(&quot;wpdiscuz_author_title&quot;, function ($label, $comment) {
    global $post;
	$user = get_user_b...]]></description>
                        <content:encoded><![CDATA[<p>@inumedia,</p>
<p>Please remove the code provided in the previous post and add this one: </p>
<pre contenteditable="false">add_filter("wpdiscuz_author_title", function ($label, $comment) {
    global $post;
	$user = get_user_by('id', $comment-&gt;user_id);
    if ($comment-&gt;user_id == $post-&gt;post_author &amp;&amp; is_array($user-&gt;roles) &amp;&amp; in_array("administrator",$user-&gt;roles)) {
        $label = __("Administrator", "wpdiscuz");
    }
    return $label;
}, 10, 2);</pre>
<p>Regarding the colour of the label, you'll be able to change it using custom CSS code with the next version of the wpDiscuz plugin (no ETA). Currently, there is no way to change the colour even with the js code. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/wpdiscuz-integration/">wpDiscuz Integration</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15571</guid>
                    </item>
				                    <item>
                        <title>RE: if comment author is admin add role class to &quot;wpd-comment-wrap&quot;</title>
                        <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15556</link>
                        <pubDate>Tue, 12 Jul 2022 07:28:45 +0000</pubDate>
                        <description><![CDATA[Hi yes I already did that but the color behind stay as &quot;author&quot; color not as &quot;administrator&quot;.So i&#039;m trying a hook to add the wpd-blog-administrator class if the label is equal to &quot;Administra...]]></description>
                        <content:encoded><![CDATA[<p>Hi <br /><br />yes I already did that but the color behind stay as "author" color not as "administrator".<br /><br />So i'm trying a hook to add the <span>wpd-blog-administrator class if the label is equal to "Administrator"</span></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/wpdiscuz-integration/">wpDiscuz Integration</category>                        <dc:creator>inumedia</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15556</guid>
                    </item>
				                    <item>
                        <title>RE: if comment author is admin add role class to &quot;wpd-comment-wrap&quot;</title>
                        <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15555</link>
                        <pubDate>Tue, 12 Jul 2022 07:23:29 +0000</pubDate>
                        <description><![CDATA[@inumedia,
If you want to replace the &quot;Author&quot; label with &quot;Administrator&quot; you can use the hook code below:
add_filter(&quot;wpdiscuz_author_title&quot;, function ($label, $comment) {
    global $po...]]></description>
                        <content:encoded><![CDATA[<p>@inumedia,</p>
<p>If you want to replace the "Author" label with "Administrator" you can use the hook code below:</p>
<pre contenteditable="false">add_filter("wpdiscuz_author_title", function ($label, $comment) {
    global $post;
    if ($comment-&gt;user_id == $post-&gt;post_author) {
        $label = __("Administrator", "wpdiscuz");
    }
    return $label;
}, 10, 2);</pre>
<p>Put the hook code in the WordPress active theme functions.php file. Helpful article: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/wpdiscuz-integration/">wpDiscuz Integration</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15555</guid>
                    </item>
				                    <item>
                        <title>if comment author is admin add role class to &quot;wpd-comment-wrap&quot;</title>
                        <link>https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15550</link>
                        <pubDate>Mon, 11 Jul 2022 12:52:30 +0000</pubDate>
                        <description><![CDATA[HelloIf the administrator comment his own post, it&#039;s displaying in &quot;author&quot; color in the template, so I wish to replace &quot;wpd-blog-post_author&quot; by &quot;wpd-blog-administrator&quot;, for this specific ...]]></description>
                        <content:encoded><![CDATA[<p>Hello<br /><br /><br />If the administrator comment his own post, it's displaying in "author" color in the template, so I wish to replace "<span>wpd-blog-post_author" by "wpd-blog-administrator", for this specific case.<br /><br />Any function to do it ? <br /><br />May be by doing something in Jquery based on the "wpd-tooltip" value ? <br />But I don't know how doing this.</span></p>
<p> </p>
<p>thanks</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/wpdiscuz-integration/">wpDiscuz Integration</category>                        <dc:creator>inumedia</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/wpdiscuz-integration/if-comment-author-is-admin-add-role-class-to-wpd-comment-wrap/#post-15550</guid>
                    </item>
							        </channel>
        </rss>
		