lacee1986
8/9/2016 - 2:04 PM

Change role name

Change role name

* Change Role Name */
add_action('init', 'change_role_name');
function change_role_name() {
  global $wp_roles;
  
  if ( ! isset( $wp_roles ) )
    $wp_roles = new WP_Roles();
  
  //You can replace "administrator" with any other role "editor", "author", "contributor" or "subscriber"...
  $wp_roles->roles['subscriber']['name'] = 'Member';
  $wp_roles->role_names['subscriber'] = 'Member';
}