Earlier this week, I published a post on how to find users in WordPress by using meta data. In short, I have a collection of users each of which have unique meta data and I needed to locate a user based on said meta data.
In the comments, Curtis of @WPThemeTut recommended I check out WP_User_Query
as opposed to way that I was doing it (which I’ll cover momentarily).
Because the WordPress API has a tendency to introduce new functions for querying specific data in later releases, and because I try to be a proponent of using the newer methods, I wanted to cover WP_User_Query
in a bit more detail.