Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Display specific role on profile user

@oliviergodefroit

Participant

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’

Skip to toolbar