How to request data on the two values?

I request for withdrawal only certain orders from Woocommerce

custom_admin_shop_manager_orders function($query) {
 global $pagenow;
 $qv = &$query->query_vars;

 $user_id = get_current_user_id();
 $userln = get_the_author_meta( 'userln', $user_id );
 if ( $pagenow == 'edit.php' && 
 isset($qv['post_type']) && $qv['post_type'] == 'shop_order' ) {

 $query->set('meta_key', '_store_manager_ln');
 $query->set('meta_value', $userln);

}

 return $query;
 }


How can I make orders that contain meta_value one of the two value. Type:
$query->set('meta_key', '_store_manager_ln');
 $query->set('meta_value', $userln1);
 $query->set('meta_value', $userln2);
March 19th 20 at 08:27
1 answer
March 19th 20 at 08:29
Solution
So?
$query->set('meta_key', '_store_manager_ln');
$query->set('meta_value', array($userln1, $userln2));
$query->set('meta_compare', 'IN');
Exactly, thank you - Ofelia commented on March 19th 20 at 08:32

Find more questions by tags WordPress