Skip to:

Changing name of "Key Master"

  • rmazereeuw


    I have bbpress Version 2.1.2 installed and in the forum itself the admin’s profile shows the phrase “Key Master” under (where a normal user shows “Subscriber.” How can I change the wording of “Key Master” to something else, like Site Owner or something?

    Just to be clear: Permissions and functions are all working as expected: This is purely changing the wording visible in the forum itself, just like in this forum it shows “member” under my name.

    Tried searching on this with no luck. Older forum discussions mention being able to change this at the user account level in WP, but I see no options there.

    Thanks for any suggestions!

Viewing 10 replies - 1 through 10 (of 10 total)

  • dprundle


    I would also love to know the answer to this question! I checked on the users page with no luck.



    Put this code somewhere in your theme functions.php

    Otherwise you can change the roles editing the bbPress gettext file. Check ‘\wp-content\plugins\bbpress\bbp-languages\bbpress.pot’, create a .po for your language (if you already hasn’t one) and change the string “Key Master” at line 3311. If you don’t know what I’m talking about I can generate the file for you.



    Zaerl, worked perfectly. Thank you.

    For those that want to know exactly what I did:
    I edited functions.php in my twentyeleven child theme and added the function he provided via the github link.

    After that the role of Key Master now displays as Site Owner.

    Thanks Zaerl.



    I’m having issues with this using 2.2 of the bbPress. I did edit the line you suggested but I don’t believe that it’s being handled in the same spot in the new release. Any thoughts?

    Sam Rohn


    use this plugin, it allows changing bbpress user role names and other bbpress standard text




    Thanks Zearl, need to modify your code slightly to get it to work:
    Had to remove ‘$user_role’

    function my_custom_roles( $role, $user_id ) {
    if( $role == ‘Key Master’ )
    return ‘Site Owner’;
    return $role;
    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles’, 10, 3 );




    I followed the github recommendations below:

    function my_custom_roles( $role, $user_id, $user_role ) {
    if( $role == ‘Key Master’ )
    return ‘Site Owner’;
    return $role;
    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles’, 10, 3 );

    And I get this error on my bbpress page:

    Warning: Missing argument 3 for my_custom_roles() in /home/belly/public_html/wp-content/themes/kickstart-child/functions.php on line 90

    The page does still come up, but this is visible above the author’s avatar.

    Any thoughts?




    try this code from this link

    and rename the ones you want

    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    function ntwb_bbpress_custom_role_names() {
    	return array(
    		// Keymaster
    		bbp_get_keymaster_role() => array(
    			'name'         => 'My Custom Keymaster Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
    		// Moderator
    		bbp_get_moderator_role() => array(
    			'name'         => 'My Custom Moderator Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
    		// Participant
    		bbp_get_participant_role() => array(
    			'name'         => 'My Custom Participant Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
    		// Spectator
    		bbp_get_spectator_role() => array(
    			'name'         => 'My Custom Spectator Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
    		// Blocked
    		bbp_get_blocked_role() => array(
    			'name'         => 'My Custom Blocked Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )



    I’ve updated the filter code to make it work for BBPress 2.5.7+

    The Keymaster title changed from “Key Master” to “Keymaster” at some point, and the filter only accepts 2 variables now.

    I would be hesitant to use @robkk‘s code, as it is replacing a core function, instead of simply filtering.

    Manuel Fritsch


    I wanted to change two titles, so I wrote this (had to take the translated strings though, so this fix will fail again when roles are renamed in bbress or our locale):

    function my_custom_roles( $role, $user_id ) {
    	if( $role == 'Teilnehmer' )
    		return ' ';
    	return $role;
    add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 2 );
    function my_custom_roles2( $role, $user_id ) {
    	if( $role == 'Keymaster' )
    		return 'Administrator';
    	return $role;
    add_filter( 'bbp_get_user_display_role', 'my_custom_roles2', 10, 2 );
Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Skip to toolbar