目前我有一个名为' vou'并希望在此类别下获得shop_order。我尝试了很多组合而且没有用完。感谢您阅读:
$args = array(
'post_type' =>'shop_order',
'post_status' => array_keys( wc_get_order_statuses() ),
'posts_per_page' => -1,
'orderby'=> 'date',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'vou'//,
//'terms' => get_terms( 'product_cat', array( 'fields' => 293 ) ),
)
)
);
如何按产品类别获取shop_order' vou'?