The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Bug [Solved] wpdiscuz_comment_author filter not working in v7.6.30
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 20, 2025 4:58 pm
(@tomjenx)
New Member
Joined: 8 months ago
Hi
Starting with version 7.6.30 the filter wpdiscuz_comment_author no longer works. We were using this to change the author display name, to be anonymous, based on some custom user fields. This now no longer works.
The version 7.6.29 and all prior versions works fine.
Using your demo code found here https://wpdiscuz.com/docs/codex/filters/wpdiscuz_comment_author/ :
add_filter(“wpdiscuz_comment_author”, function ($authorName, $comment) {
$authorName = “Boss”;
return $authorName;
}, 10, 2);
This now longer works either, and “Boss” is not used on any comments that are returned via the AJAX request.
If someone could please look into this, as for now, we are locked at 7.6.29.
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 21, 2025 2:27 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi,
We've tested this multiple times on our end and haven't been able to reproduce the issue. Could you please record a video demonstrating the problem, so we can better understand and assist you?
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 28, 2025 1:50 am
(@aptharsia)
Active Member
Joined: 4 years ago
Just wanted to say, it's not just you. Doing it for me too. I use it to display the comment count for each comment author.
(@tomjenx)
Joined: 8 months ago
New Member
Posts: 2
May 28, 2025 12:13 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@aptharsia I managed to fix this by changing the priority of the hook. For me this worked:
add_filter(“wpdiscuz_comment_author”, function ($authorName, $comment) {
$authorName = “Boss”;
return $authorName;
}, 10000, 2);
Obviously change it what will work for you (and your code).
This fix is very change as there is no other usage of the wpdiscuz_comment_author hook within the theme and / or other plugins and does the same on a blank theme.
(@aptharsia)
Joined: 4 years ago
Active Member
Posts: 6
May 28, 2025 9:26 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@tomjenx That fixed it for me! Thank you!