get users using get_users() by excluding a role?
-
I’m successfully building a list of users using get_users(), and I can see in the Codex that it’s possible to target the list using the ‘role’ argument, but what I can’t seem to fathom is if it’s possible to target the list to exclude a specific role.
To clarify – get_users() will pull in all users, regardless of role, and get_users(‘role=subscriber’) will pull in just the subscribers, but if I want all users except for subscriber, I can’t see how to do it.
Any ideas?
Cheers
Peter
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get users using get_users() by excluding a role?’ is closed to new replies.