Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing name of Keymaster etc


  • moscomoon
    Participant

    @moscomoon

    Hey there, so I’ve seen LOADS of posts about this and the code provided to help you create custom roles that do the same as the others.

    Only issue is I don’t know HTML I am a total noob at all of this and in NO POST does it state WHERE to put the HTML code?

    Custom Capabilities

    This was the guide I was trying to follow and it gives me the following code:

    unction add_custom_role( $bbp_roles ) {

    $bbp_roles[‘my_custom_role1’] = array(
    ‘name’ => ‘name 1’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles[‘my_custom_role2’] = array(
    ‘name’ => ‘name 2’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles[‘my_custom_role3’] = array(
    ‘name’ => ‘name 3’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
    );
    return $bbp_roles;
    }
    add_filter( ‘bbp_get_dynamic_roles’, ‘add_custom_role’, 1 );

    Which is fine

    except it doesn’t tell me where to put it? Do I just go to Plugins>edit>bbpress/bbpress.php and stick it anywhere in that big massive box of HTML?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar