The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
User labels how to display more.
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
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...
Jul 02, 2020 6:19 pm
(@vdominik17)
Active Member
Joined: 6 years ago
Hi!
How can I display more user labels? Example: the author also admin, also display the admin not only the author.. Its possible?
Many thanks,
Dominik.
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...
Jul 02, 2020 10:35 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @vdominik17,
You can use the following hook to display the secondary role:
wpdiscuz_after_label
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...
Jul 03, 2020 2:46 am
(@vdominik17)
Active Member
Joined: 6 years ago
Hi!
Thanks for the reply, and where to enter this?
Many thanks,
Dominik.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8210
Jul 03, 2020 11:24 am
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...
@vdominik17,
You should create a custom code and put it in the active theme functions.php file.
Please see the example here: https://wpdiscuz.com/docs/codex/filters/wpdiscuz_after_label/
(@vdominik17)
Joined: 6 years ago
Active Member
Posts: 3
Jul 03, 2020 8:55 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...
@asti
I try that but Its not work..
add_filter("wpdiscuz_after_label", function ($afterLabelHtml, $comment) {
if ($comment->user_id && class_exists('userpro_api')) {
$afterLabelHtml .= userpro_show_badges($comment->user_id, $inline = true);
}
return $afterLabelHtml;
}, 110, 2);
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8210
Jul 04, 2020 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...
@vdominik17,
The code provided in the doc is just an example. You should create your custom code based on the example and make it work.
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...
Jul 06, 2020 9:59 pm
(@hokx)
Active Member
Joined: 6 years ago
maybe you could add this feature in the next major update? 😀