Advertisement
majeedraza

WordPress - Change role name

Jul 19th, 2017
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement