Skip to content

Instantly share code, notes, and snippets.

@benklocek
Forked from zaerl/functions.php
Last active March 22, 2016 15:37
Show Gist options
  • Save benklocek/433713bceb83eec6984f to your computer and use it in GitHub Desktop.
Save benklocek/433713bceb83eec6984f to your computer and use it in GitHub Desktop.
Custom bbPress role names
function my_custom_roles( $role, $user_id ) {
if( $role == 'Keymaster' )
return 'Site Owner';
return $role;
}
add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment