我使用的是带有PHP的wooccommerce 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个正在处理的订单。
我该如何解决?
尝试
$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个正在处理的订单。