I have a plugin that lists all products in a convenient product table and would like to show only the products that do have a set price (>0) for the logged in user (as part of a B2B group).
The plugin filters using this meta_query code:
$args['meta_query'][] = array(
'key' => '_price',
'value' => $min_price,
'compare' => '>=',
'type' => 'NUMERIC'
);
But the effect is filtering on the standard user's price instead of the price for the B2B group of that user.
Can you advise me how to adjust the meta_query so it filters on the current user's B2B-king price instead?