Php 如何使用WooCommerce REST API列出所有可用的产品属性和术语?

Php 如何使用WooCommerce REST API列出所有可用的产品属性和术语?,php,wordpress,woocommerce,woocommerce-rest-api,taxonomy-terms,Php,Wordpress,Woocommerce,Woocommerce Rest Api,Taxonomy Terms,我正在尝试使用以下代码通过WooCommerce REST API获取所有产品属性: $current_attributes = $woocommerce->get('products/attributes'); 然而,我总是收到最多10个属性 我尝试了几种变体,如: $current_attributes = $woocommerce->get('products/attributes', ['filter[limit]' => -1]); $current_attribu

我正在尝试使用以下代码通过WooCommerce REST API获取所有产品属性:

$current_attributes = $woocommerce->get('products/attributes');
然而,我总是收到最多10个属性

我尝试了几种变体,如:

$current_attributes = $woocommerce->get('products/attributes', ['filter[limit]' => -1]);
$current_attributes = $woocommerce->get('products/attributes', ['filter[per_page]' => 9999]);
etc.
这些都不管用

如何在没有明显的10个限制的情况下获得所有产品属性(以及后来类似的所有属性术语)


PS:我真的需要列出所有属性和所有术语,而不仅仅是那些附加到特定产品上的。

我使用了
wc/v3/products/attributes

调用一个简单的获取请求:`

`https://hostname.com/wp-json/wc/v3/products/attributes?consumer_key=YOUR_KEY&consumer_secret=YOUR_KEY``

有关更多信息,您可以从中找到API规范