orderby total sales woocommerce

Solutions on MaxInterview for orderby total sales woocommerce by the best coders in the world

showing results for - "orderby total sales woocommerce"
Jordy
30 Nov 2016
1$args = array(
2  'post_type' => 'shop_order',
3  'posts_per_page' => 2000,
4  'orderby'   => 'meta_value_num',
5  'meta_key'  => 'total_sales',
6  ),
7);
8