Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing name of "Key Master"


  • rmazereeuw
    Participant

    @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 6 replies - 1 through 6 (of 6 total)

  • dprundle
    Participant

    @dprundle

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


    zaerl
    Participant

    @zaerl

    Put this code somewhere in your theme functions.php

    https://gist.github.com/4086011

    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.


    dprundle
    Participant

    @dprundle

    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.


    anthonyluth09
    Participant

    @anthonyluth09

    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
    Participant

    @sam-rohn

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

    http://wordpress.org/extend/plugins/bbpress-string-swap/

    sam


    koendb
    Participant

    @koendb

    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 );

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

You must be logged in to reply to this topic.