From 380bf8a689401ba3c876d818e2ad71e6086c6170 Mon Sep 17 00:00:00 2001 From: Povilas Staskus <4062343+staskus@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:57:10 +0300 Subject: [PATCH] Update products API to add the `search_fields` parameter --- source/includes/wp-api-v3/_products.md | 1 + 1 file changed, 1 insertion(+) diff --git a/source/includes/wp-api-v3/_products.md b/source/includes/wp-api-v3/_products.md index 34aa2d2..eca6fbd 100644 --- a/source/includes/wp-api-v3/_products.md +++ b/source/includes/wp-api-v3/_products.md @@ -1467,6 +1467,7 @@ woocommerce.get("products").parsed_response | `page` | integer | Current page of the collection. Default is `1`. | | `per_page` | integer | Maximum number of items to be returned in result set. Default is `10`. | | `search` | string | Limit results to those matching a string. | +| `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`. | | `after` | string | Limit response to resources published after a given ISO8601 compliant date. | | `before` | string | Limit response to resources published before a given ISO8601 compliant date. | | `modified_after` | string | Limit response to resources modified after a given ISO8601 compliant date. |