woocommerce / woocommerce/wc-api-php
can't filter by attributes
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 546
- Forks
- 158
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 2
Description
Hi I've tried for hours to get a simple filtered result with php Client
$params = [
'filter[pa_writer]' => 'stephen king'
];
$response = $this->client->get('products', $params);
can you give me a little example of a request filtered by attribute or other fields.
in the woocommerce-rest-api-docs i've found this table

but nothing work in the client only the example of listing All products.
thank you
have an epic day! =D
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the PHP client call shown in the issue and the WooCommerce REST API documentation table. Reproduce the filtered products request and check whether the client passes the filter parameters through as documented. Done means providing a verified example for filtering by an attribute or other product field, or clearly documenting the limitation if it does not work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100