Your code is a bit outdated since Woocommerce 3…
Almost all endpoints accept optional parameters which can be passed as a HTTP query string parameter, e.g. GET /orders?status=completed . All parameters ...
to make it quick and easy to connect a WordPress plugin or theme to the API
The linked code is outdated and don't handle any URL query string. You should need to make changes and adapt the code. Note: Orders can ...
http://example.com/index.php/checkout/order-received/161/?key = ...
create query string from woocommerce order confirmation · woocommerce not displaying ...
The WP_Query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category).
curl https://www.skyverge.com/wc-api/v1/orders?status=processing,completed
This construct allows you to query multiple metadatas by using the
To create your API keys manually, in WooCommerce, click on