Skip to content

Commit 93f8685

Browse files
authored
Merge pull request #271 from woocommerce/woomob-713-add-search-fields-documentation
Update products API to add the `search_fields` parameter
2 parents 3a28e8f + 380bf8a commit 93f8685

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/includes/wp-api-v3/_products.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@ woocommerce.get("products").parsed_response
14681468
| `page` | integer | Current page of the collection. Default is `1`. |
14691469
| `per_page` | integer | Maximum number of items to be returned in result set. Default is `10`. |
14701470
| `search` | string | Limit results to those matching a string. |
1471+
| `search_fields` | array | Fields to search when used with `search` parameter. All search tokens must be found across any of the specified fields. Takes precedence over other search parameters. If empty, uses default `search` behavior. Options: `name`, `sku`, `global_unique_id`, `description`, and `short_description`. |
14711472
| `after` | string | Limit response to resources published after a given ISO8601 compliant date. |
14721473
| `before` | string | Limit response to resources published before a given ISO8601 compliant date. |
14731474
| `modified_after` | string | Limit response to resources modified after a given ISO8601 compliant date. |

0 commit comments

Comments
 (0)