Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!

Merry Christmas and Happy Holidays! 🎄

[Solved] Can we assign badges to certain member based on his membership

3 Posts
2 Users
0 Reactions
1,818 Views
Posts: 1
Topic starter
(@sahib)
New Member
Joined: 3 years ago

I don't want to assign badges to all users based on his points. Also dont want to show points. I want to assign badge to only users who are having Premium membership. Is there is any hooks available for customization inside wpDiscuz - myCRED Integration for developers.

 

Thanks

Sahib Khan


2 Replies
Astghik
Posts: 6580
Admin
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi Sahib Khan,

Also dont want to show points.

You can disable it in the Dashboard > Points > Hooks > admin page, just edit the "wpDiscuz Integration" section. Please watch this small video instraction:  https://www.screencast.com/t/BqkfMmeS

I want to assign badge to only users who are having Premium membership. Is there is any hooks available for customization inside wpDiscuz - myCRED Integration for developers.

I'll ask the developers and let you know soon. 


1 Reply
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6580

I'll ask the developers and let you know soon. 

You should make the customization using the MyCread plugin mycred_the_badge hook. The example is provided below: 

add_filter("mycred_the_badge", function($image, $badge_id, $badge, $userID){
    if($userID == 4){
        return $image;
    }
    return '';
},15,4);

You should customize the code as it's necessary in your case. 


Share:
Scroll to top