📜  orderby 总销售额 woocommerce - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.027000             🧑  作者: Mango

代码示例1
$args = array(
  'post_type' => 'shop_order',
  'posts_per_page' => 2000,
  'orderby'   => 'meta_value_num',
  'meta_key'  => 'total_sales',
  ),
);