The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
wpdiscuz_comment_au...
 
Notifications
Clear all

[Solved] wpdiscuz_comment_author does not work properly

5 Posts
2 Users
0 Reactions
1,482 Views
(@sostenuto0606work1)
Posts: 7
Active Member
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
 
[#3737]

I can't change the comment author name with wpdiscuz_comment_author.
Do you know the cause?

 

Version 7.3.11


 
Posted : 20/02/2022 9:29 am
Asti
 Asti
(@asti)
Posts: 8260
Illustrious Member 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
 

Hi @sostenuto0606work1,

Please clarify a bit what kind of code have you used? 


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 21/02/2022 12:22 pm
(@sostenuto0606work1)
Posts: 7
Active Member
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
 

Hello

 

Write to function.php

add_filter ("wpdiscuz_comment_author", function ($ authorName, $ comment) {
$ authorName = "Boss";
return $ authorName;
},10,2);

It doesn't change.


 
Posted : 21/02/2022 1:24 pm
Asti
 Asti
(@asti)
Posts: 8260
Illustrious Member 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
 

@sostenuto0606work1,

First of all, please remove the extra spaces in the code. It should look:

add_filter ("wpdiscuz_comment_author", function ($authorName, $comment) {
   $authorName = "Boss";
   return $authorName;
},10,2);

Then navigate to Dashboard > wpDiscuz > Settings > General Settings tab, click on the "Purge comments and users caches" button, then delete other plugin caches as well and check again. 

Don't forget to press Ctrl+F5 (twice) on the frontend before checking.


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 21/02/2022 1:51 pm
(@sostenuto0606work1)
Posts: 7
Active Member
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
 

solved.

thank you.


 
Posted : 22/02/2022 2:15 pm