WP_USER_QUERY meta query secondary table
-
0
down vote
favorite
I’m using PMPro to allow users to select a membership option, I can output using the following code the membership a user has, is there a way of combining this with wp_user_query in order to display users who have a membership. I’m fine with querying the user meta but with these values being stored in an alternate table I’m struggling to figure out how I go about this.Thanks for any help
if(is_user_logged_in() && function_exists(‘pmpro_hasMembershipLevel’) && pmpro_hasMembershipLevel())
{
global $current_user;
$current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID);
echo ‘Membership Level: ‘ . $current_user->membership_level->name;
}
- The topic ‘WP_USER_QUERY meta query secondary table’ is closed to new replies.