WordPress - Change role name

lorro Jul 19th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // WordPress - Change role name
  3.   add_action( 'init', 'change_role_name' );
  4.   function change_role_name() {
  5.     global $wp_roles;
  6.     $wp_roles->roles['administrator']['name'] = 'Webmaster';
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand