0

I am trying to filter the order by the meta key (i have created a meta key called order_secret_code), but i still receive all of the orders. Can any one help me with it?

'orders?filter[meta]=true&filter[meta_key]=order_secret_code&filter[meta_value]='+$stateParams.secretcode
4

1 回答 1

0

http://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-products 按对象属性对集合进行排序。选项:日期、id、包含、标题和 slug。默认为日期。不推荐使用 filter[meta_value]。

于 2017-03-26T11:25:00.663 回答