Change default role names “Administrator, Editor, Author, Contributor, Subscriber” to anything

Have you ever wanted to change the default role names "Administrator, Editor, Author, Contributor, Subscriber" within wordpress? Add this little snippet to the functions.php of your wordpress theme. This snippet will let you change any of the existing role names to anything that you would like. This will of course display within the role select menu for users. "Please note this does not add a new role or permanently change the name"

Code Snippet:

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

Comments  Leave a Reply

  1. can this be used in multisite wordpress on Version 4.8.2? because i put this code in function.php, its not working on add new user page

  2. How to Change the Default WordPress Role Names to Anything - WPMU DEV January 4, 2015 at 8:10 am

    […] snippet (thanks to Kevin Chard!) will let you change any of the existing role names. For example, instead of Contributor you could […]

  3. WordPress tip: Modify any role name to fit your needs September 15, 2014 at 7:38 am

    […] to Kevin Chard for the […]

  4. Nice function, but good to keep in mind is that the slug of the Role remains the original…

    1. Yes this is true you would need to also change the slug, however at that point it may be better to create a new role rather than change the name of the existing. I still think this has some uses.

      1. Oh I agree, it definitely has some good uses! I just meant that it is something to keep in mind 🙂

        1. Fair enough, and good point 🙂

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!