Working with the WordPress user meta query

$args = array(
    'meta_query' => array(
        'relation' => 'AND',
            array(
                'key'     => 'occupation',
                'value'   => 'developer',
                 'compare' => 'LIKE' // any value that contains developer
            ),
            array(
                'key'     => 'billing_country',
                'value'   => 'United States',
                 'compare' => '='
            ),
            array(
                'key'     => 'experience',,
                'value'   => '5',
                 'compare' => '>='
            )
    )
);
 
$user_query = new WP_User_Query( $args );

Visto en https://usersinsights.com/wordpress-user-meta-query/

Working with the WordPress user meta query Leer más »