Get all orders from a vendor
-
Hi,
How do I get all orders from a selected vendor?
I tried this but it doesn’t work:
$args = array( 'post_type' => 'shop_order', 'meta_key' => '_dokan_vendor_id', 'meta_value' => $seller_id, 'posts_per_page' => '-1' ); $my_query = new WP_Query($args); $user_orders = $my_query->posts;
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get all orders from a vendor’ is closed to new replies.