I don't know if this is a bug or a feature request but in my use case I need to list all WordPress users within a radius, but the geo_mashup_query function doesn't seem to work with WP_User_Query function.
This is my code, which returns all users
$args = array(
'geo_mashup_query' => array(
'near_lat' => $lat_user,
'near_lng' => $long_user,
'radius_km' => 1,
)
);
// The Query
$user_query = new WP_User_Query( $args );
// User Loop
if ( ! empty( $user_query->get_results() ) ) {
foreach ( $user_query->get_results() as $user ) {
//all users are listed here
}
}
I don't know if this is a bug or a feature request but in my use case I need to list all WordPress users within a radius, but the geo_mashup_query function doesn't seem to work with WP_User_Query function.
This is my code, which returns all users