@oliviergodefroit
6 years, 1 month ago
No i didn’t , i’m so confuse !!!
That works. This code is OK !
Hello,
unfortunately, this code doesn’t work, there is no error message but nothing appear on profiles.
Yes excuse me. I would like to dislpay only one specific role on profile page, to certify this user is certified by the moderator.
here is the code:
add_action( 'bp_before_member_header_meta', 'verifed_profile_check' ); function verifed_profile_check( ) { if ( $role = 'certified_subscribers' ) echo '<span class="pmpro_label"> CERTIFIED PROFILE </span>'; }
This code display ‘CERTIFIED PROFILE’ to all profiles but should only display it for users role ‘certified_subscribers’
My theme don’t show the user role, that is a script to show a badge ( if the user has a specific role).
This badge will confirm the certified profile.