daily pastebin goal
32%
SHARE
TWEET

WordPress - Change role name

lorro Jul 19th, 2017 60 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
Top