Adding User Roles, but User Title Doesn’t Change
-
Hello,
I added a function in functions.php to add some user roles.
They are now available, but when I set them on a user, their user title on posts only says “Member”, instead of the name I set.
Here’s my code:
function add_custom_role( $bbp_roles ) { $bbp_roles['neophyte'] = array( 'name' => 'Neophyte I°', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ); $bbp_roles['adept'] = array( 'name' => 'Adept II°', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
How can I get the desired names to actually show up underneath those users?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.