Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Changing name of "Key Master"

@arutam

Participant

Thanks for the code @benklocek

I created a custom role with this code:

//Custom Role Admin
function add_custom_role( $bbp_roles ) {
 $bbp_roles['my_custom_role1'] = array(
'name' => 'Admin',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as admin

);

return $bbp_roles;
 }
 add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );

and I can’t change the role name with @robkk code. But I did with your code. So I wonder what should I change to apply your code for all other roles, participant, moderator?

Thanks!

I tried couple ways but without success. Ex:

function my_custom_roles( $role, $user_id ) {
	if( $role == 'Participant' )
		return 'Participante';

	return $role;
}

add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 2 );
Skip to toolbar