I am trying to get all product attributes by WooCommerce REST API using the following code:
$current_attributes = $woocommerce->get('products/attributes');
However I always receive up to 10 attributes maximum.
I tried a several variants like:
$current_attributes = $woocommerce->get('products/attributes', ['filter[limit]' => -1]);
$current_attributes = $woocommerce->get('products/attributes', ['filter[per_page]' => 9999]);
etc.
None of these works.
How can I get all product attributes (and later similarly all attributes terms) without the obvious limit for 10?
PS: I really need to list ALL attributes and ALL terms and not only those attached to a specific product.