• March 29, 2018 at 3:05 pm #1340
      Mike Baker
      Keymaster

      Changing the title “Keymaster” for the bbPress admin to something else, because Keymaster is fn CORNY!

      Add this code to your functions.php (child theme recommended) and change “My Custom Keymaster Role Name” to what ever 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() )
      )
      );
      }

    • April 26, 2018 at 8:36 pm #1581
      Mike Baker
      Keymaster

      I updated this with a newer better code 4/26/18

You must be logged in to reply to this topic.