WordPress get user by meta data
Asked 07 September, 2021
Viewed 1K times
  • 55
Votes

How can I retrieve all users registered in my WordPress blog having a particular meta data?

For example I have made an option to add a custom meta data for every registering users having meta key as parent_id. If I want to list all users having parent_id as 2 , then how can I do this?

4 Answer