The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
User labels how to display more.
How-to and Troubleshooting
(@vdominik17)
Active Member
Joined: 5 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.
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @vdominik17,
You can use the following hook to display the secondary role:
wpdiscuz_after_label
(@vdominik17)
Active Member
Joined: 5 years ago
Hi!
Thanks for the reply, and where to enter this?
Many thanks,
Dominik.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Jul 03, 2020 7:24 am
@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: 5 years ago
Active Member
Posts: 3
Jul 03, 2020 4:55 pm
@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: 8188
Jul 04, 2020 8:13 am
@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.
(@hokx)
Active Member
Joined: 5 years ago
maybe you could add this feature in the next major update? 😀