<?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>
									wpdiscuz_comment_author Filter does not fire - Bug Reports				            </title>
            <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 15:18:15 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17073</link>
                        <pubDate>Sat, 22 Oct 2022 12:33:31 +0000</pubDate>
                        <description><![CDATA[@asti Fantastic, thank you! It would be amazing if we could add comments to the docs codex or if this could be noted there.]]></description>
                        <content:encoded><![CDATA[@asti Fantastic, thank you! <span>It would be amazing if we could add comments to the docs codex or if this could be noted there.</span>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>serveracademy</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17073</guid>
                    </item>
				                    <item>
                        <title>RE: wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17072</link>
                        <pubDate>Sat, 22 Oct 2022 12:15:12 +0000</pubDate>
                        <description><![CDATA[@serveracademy,
Please watch this video:
The hook code works fine.]]></description>
                        <content:encoded><![CDATA[<p>@serveracademy,</p>
<p>Please watch this video: https://www.screencast.com/t/MHItBGTip</p>
<p>The hook code works fine. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17072</guid>
                    </item>
				                    <item>
                        <title>RE: wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17071</link>
                        <pubDate>Sat, 22 Oct 2022 12:09:27 +0000</pubDate>
                        <description><![CDATA[@asti I was writing my reply below before I read this comment. I undid my work and purged the user cache like you mentioned and it worked!

It would be amazing if we could add comments to ...]]></description>
                        <content:encoded><![CDATA[<p>@asti I was writing my reply below before I read this comment. I undid my work and purged the user cache like you mentioned and it worked!</p>
2878
<p>It would be amazing if we could add comments to the docs codex or if this could be noted there.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>serveracademy</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17071</guid>
                    </item>
				                    <item>
                        <title>RE: wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17070</link>
                        <pubDate>Sat, 22 Oct 2022 12:05:18 +0000</pubDate>
                        <description><![CDATA[EDIT: DISREGARD THIS REPLY AND SEE ABOVE SOLUTION FOR PURGING CACHE
After inspecting the plugin code, I found the filter is ONLY firing for comment replies:

I believe this filter should ...]]></description>
                        <content:encoded><![CDATA[<p>EDIT: DISREGARD THIS REPLY AND SEE ABOVE SOLUTION FOR PURGING CACHE</p>
<p>After inspecting the plugin code, I found the filter is ONLY firing for comment replies:</p>
2877
<p>I believe this filter should be applied to base comments as well. After reading this documentation linked below I decided to edit the template and add support for the filter myself.</p>
<p>For anyone else following behind me, this documentation is a bit outdated as well because I could not locate the CSS file at '<span>/wpdiscuz/assets/css/</span><span>wpdiscuz.css', but thankfully I did not need it.</span></p>
<p>https://wpdiscuz.com/docs/wpdiscuz-documentation/customization/custom-template-and-style/</p>
<p>I copied '<span>class.WpdiscuzWalker.php' into my child theme folder (/wp-content/themes/mytheme/wpdiscuz/', and around line 254 I added the following code:</span></p>
<pre contenteditable="false">        $uNameClasses = apply_filters("wpdiscuz_username_classes", "");
        $user = '&lt;div class="wpd-comment-author" style="padding: 0px;"&gt;' . apply_filters("wpdiscuz_comment_author", $user-&gt;data-&gt;display_name, $comment) . '&lt;/div&gt;';
        $user .= apply_filters("wpdiscuz_after_comment_author", "", $comment, $user);</pre>
<p>Now the author name I configured in the filtered function is displaying as desired. Again, I believe this should be included by default and I believe this is a bug.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>serveracademy</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17070</guid>
                    </item>
				                    <item>
                        <title>RE: wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17069</link>
                        <pubDate>Sat, 22 Oct 2022 11:43:07 +0000</pubDate>
                        <description><![CDATA[Hi @serveracademy,
Please navigate to Dashboard &gt; wpDiscuz &gt; Settings &gt; General Settings tab, and delete the wpDiscuz caches using the &quot;Purge Comment and User Caches&quot; button. If yo...]]></description>
                        <content:encoded><![CDATA[<p>Hi @serveracademy,</p>
<p>Please navigate to <em>Dashboard &gt; wpDiscuz &gt; Settings &gt; General Settings</em> tab, and delete the wpDiscuz caches using the "<label for="purgeAllCaches"><strong>Purge Comment and User Caches</strong>" button. If you have other kinds of caches delete those as well. </label><span></span></p>
<p>Also, don't forget to press <em>Ctrl+F5</em> (twice) on the frontend before checking.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17069</guid>
                    </item>
				                    <item>
                        <title>wpdiscuz_comment_author Filter does not fire</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17068</link>
                        <pubDate>Sat, 22 Oct 2022 11:10:05 +0000</pubDate>
                        <description><![CDATA[I have tried implementing this example provided for changing the displayed name for a comment:
I changed the code to remove the if statement:
add_filter(&quot;wpdiscuz_comment_author&quot;, function...]]></description>
                        <content:encoded><![CDATA[<p>I have tried implementing this example provided for changing the displayed name for a comment:</p>
<p>https://wpdiscuz.com/docs/codex/filters/wpdiscuz_comment_author/</p>
<p>I changed the code to remove the if statement:</p>
<pre contenteditable="false">add_filter("wpdiscuz_comment_author", function ($authorName, $comment) {
    $authorName = "Boss";
    return $authorName;
}, 10, 2);</pre>
<p>However this still does not change any displayed author names:</p>
2876
<p>I added the "wpdiscuz_after_comment_author" filter and that works perfectly. Please help!</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>serveracademy</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wpdiscuz_comment_author-filter-does-not-fire/#post-17068</guid>
                    </item>
							        </channel>
        </rss>
		