How to get_user
-
Hi there,
Fantastic plugin thank you!
I have a question because I have a custom function that prints a user directory based on their Role in the system.
I have found I can get all users with a specific Primary Role using the WordPress API function:
get_users('role=contributor&fields=ID')
However I would like now to do the same but for Other Role (secondary role), please can you tell me how I can do the same with the above function and if it is not possible is there a custom function I can use to do this?
Many thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to get_user’ is closed to new replies.