How to change role names in network?
-
I have used this code in single site installations and it works but not in multisite. Is there a way to make it work?
Thanks/* change role names */ function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); $wp_roles->roles['administrator']['name'] = 'Another Name'; $wp_roles->role_names['administrator'] = 'Another Name'; } add_action('init', 'wps_change_role_name'); /* end */
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to change role names in network?’ is closed to new replies.