We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi friends. I want to fetch all orders and put them in array but this code returns : Undefined index: X-WP-TotalPages
$params = [ 'per_page' => 100, 'page' => 1 ]; $woocommerceorder = Woocommerce::get('orders', $params); while (Woocommerce::hasNextPage()) { $params = [ 'per_page' => 100, 'page' => Woocommerce::nextPage() ]; $woocommerceorderpart = Woocommerce::get('orders', $params); $woocommerceorder = array_merge($woocommerceorder, $woocommerceorderpart); }
any idea ?
The text was updated successfully, but these errors were encountered:
See my pull request #57 for a fix for this issue.
Sorry, something went wrong.
No branches or pull requests
Hi friends.
I want to fetch all orders and put them in array but this code returns : Undefined index: X-WP-TotalPages
any idea ?
The text was updated successfully, but these errors were encountered: