Skip to content

Instantly share code, notes, and snippets.

@dermotmcguire
Created August 5, 2014 03:26
Show Gist options
  • Save dermotmcguire/20046ec53df893a9c8a5 to your computer and use it in GitHub Desktop.
Save dermotmcguire/20046ec53df893a9c8a5 to your computer and use it in GitHub Desktop.
Snippet: WordPress: Change default user role names
// Change Wordpress default user role names
// http://wpsnipp.com/index.php/functions-php/change-default-role-names-administrator-editor-author-contributor-subscriber/
function wps_change_role_name() {    global $wp_roles;    if ( ! isset( $wp_roles ) )        $wp_roles = new WP_Roles();    $wp_roles->roles['contributor']['name'] = 'Owner';    $wp_roles->role_names['contributor'] = 'Owner';}add_action('init', 'wps_change_role_name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment