Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Default role titles in BBpress are "Keymaster" and "Participant".

I want to change them. I tried the solutions in this page but they didn't work in my bbpress. Probably, the solutions are for old versions of bbpress. I have version 2.2.x.

How can I change role labels in bbpress?

share|improve this question
add comment

1 Answer 1

Have you tried this plugin: http://wordpress.org/extend/plugins/bbpress-string-swap/ ?

Or if you want to code, you could use this snippet in which you can change names. You should insert it into your functions.php

add_filter( 'bbp_get_dynamic_roles', 'my_bbp_custom_role_names');

function my_bbp_custom_role_names(){
 return array(

        // Keymaster
        bbp_get_keymaster_role() => array(
            'name'         => __( 'Keymaster', 'bbpress' ),
            'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
        ),

        // Moderator
        bbp_get_moderator_role() => array(
            'name'         => __( 'Moderator', 'bbpress' ),
            'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
        ),

        // Participant
        bbp_get_participant_role() => array(
            'name'         => __( 'Participant', 'bbpress' ),
            'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
        ),

        // Spectator
        bbp_get_spectator_role() => array(
            'name'         => __( 'Spectator', 'bbpress' ),
            'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
        ),

        // Blocked
        bbp_get_blocked_role() => array(
            'name'         => __( 'Blocked', 'bbpress' ),
            'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
        )
    );
}
share|improve this answer
    
Unfortunately, this didn't work neither. I put the code into functions.php of my theme. But role labels are still the same. –  Mert Nuhoglu Jan 27 '13 at 15:59
1  
Cuz there was an error in the code - one extra bracket. And you have to rewrite 'name' é> 'Keymaster' to whatever you like. Give it a try again. –  david.binda Jan 27 '13 at 16:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.