I am trying to get all users. All users were created in Network Admin. Some have been granted super admin privileges. The others are, according to the quote below, automatically subscribers. There are no role options offered in Network Admin.
Using WP_User_Query I can only seem to get the super admins.
And this yields no one:
new WP_User_Query( array( 'role' => 'subscriber' ) )
What gives? How do I get all users created in Network Admin?
User Access: By design, all users who are added to your network will have subscriber access to all sites on your network. To allocate a different default role for users on individual sites, you must use a plugin, such as Multisite User Management.
- The topic ‘WP_User_Query and Multisite’ is closed to new replies.