Custom User Role – ‘add_user’ Capabilities (Multisite)
-
Hello,
I’m trying to add a new user role to my WordPress multisite installation that can manager users for one particular site.
My add_role function looks like this –
$result = add_role( 'production_editor', __( 'Production Editor' ), array( 'read' => true, 'list_users' => true, 'remove_users' => true, 'edit_users' => true, 'create_users' => true, 'delete_users' => true, 'promote_users' => true, 'manage_network_users' => true, ) );This is working fine to list/edit users, but I can only add existing users, and I need to be able to add completely new users that don’t already exist (as super admins are able to do).
What updates/capabilities would this require on the role?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Custom User Role – ‘add_user’ Capabilities (Multisite)’ is closed to new replies.