# bbPress: Rename Forum Roles

> Changes the names of bbPress forum roles shown next to members' posts, for example "Participant" to "Member" and "Keymaster" to "Admin".

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: bbpress, roles, labels
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/bbpress-rename-forum-roles/

## Code

```php
if ( ! function_exists( 'bbp_get_dynamic_roles' ) ) {
    return;
}

// bbPress role => new name.
$wpide_bbp_role_names = array(
    'bbp_keymaster'   => 'Admin',
    'bbp_moderator'   => 'Moderator',
    'bbp_participant' => 'Member',
    'bbp_spectator'   => 'Reader',
);

add_filter( 'bbp_get_dynamic_roles', function ( $roles ) use ( $wpide_bbp_role_names ) {
    foreach ( $wpide_bbp_role_names as $role => $name ) {
        if ( isset( $roles[ $role ] ) ) {
            $roles[ $role ]['name'] = $name;
        }
    }

    return $roles;
} );
```

## Notes

Only the labels change; capabilities stay the same.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "bbPress: Rename Forum Roles" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
