WooCommerce conditional meta query
The default relation for a meta query is AND, so when you have two conditions they will be treated as such: $meta_query[] = array( ‘key’ => ‘_stock’, ‘value’ => ‘0.000000’, ‘compare’ => ‘NOT IN’ ); $meta_query[] = array( ‘key’ => ‘_backorders’, ‘value’ => ‘no’, ‘compare’ => ‘!=’ ); Get all products with a _stock meta … Read more