我使用位于此处的PHP的woocommerce apii https://github.com/kloon/WooCommerce-REST-API-Client-Library
我尝试过使用
$all_orders = $client->orders->get(null, array( 'post_status' => 'wc-processing') );
$all_orders = $client->orders->get(null, array( 'post_status' => 'processing') );
$all_orders = $client->orders->get(null, array( 'status' => 'wc-processing') );
$all_orders = $client->orders->get(null, array( 'status' => 'processing') );
仅返回20个结果。有71个处理订单。
我如何解决?
答案 0 :(得分:0)
试
$all_orders = $client->orders->get(null, array('filter[limit]' => '-1' ,'status' => 'processing') );
获取所有处理订单或
$all_orders = $client->orders->get(null, array('filter[limit]' => '500' ,'status' => 'processing') );
获取500个处理订单。