The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
User labels how to ...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

User labels how to display more.

7 Posts
3 Users
0 Reactions
1,364 Views
Posts: 3
Topic starter
(@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.

Topic Tags
6 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @vdominik17,

You can use the following hook to display the secondary role: 

wpdiscuz_after_label
Reply
Posts: 3
Topic starter
(@vdominik17)
Active Member
Joined: 5 years ago

Hi!

Thanks for the reply, and where to enter this?

Many thanks, 

Dominik.

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8075

@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/

Reply
(@vdominik17)
Joined: 5 years ago

Active Member
Posts: 3

@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);
Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8075

@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. 

Reply
Posts: 4
 hokx
(@hokx)
Active Member
Joined: 5 years ago

maybe you could add this feature in the next major update? 😀

Reply
Share: