Created
August 5, 2014 03:26
-
-
Save dermotmcguire/20046ec53df893a9c8a5 to your computer and use it in GitHub Desktop.
Snippet: WordPress: Change default user role names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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