From efcd95aaad15f66f1fcd2ef87b4e6b8392a6ece1 Mon Sep 17 00:00:00 2001 From: Shunji Lin Date: Sun, 25 Apr 2021 18:04:41 +0900 Subject: [PATCH] Update v3/products orderby to include 'price', 'popularity', 'rating' Update v3/products orderby to include 'price', 'popularity' and 'rating' --- source/includes/wp-api-v3/_index.md | 5 ++++- source/includes/wp-api-v3/_products.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/includes/wp-api-v3/_index.md b/source/includes/wp-api-v3/_index.md index 76a65838..a3171ac0 100644 --- a/source/includes/wp-api-v3/_index.md +++ b/source/includes/wp-api-v3/_index.md @@ -6070,7 +6070,10 @@ woocommerce.get("").parsed_response "id", "include", "title", - "slug" + "slug", + "price", + "popularity", + "rating" ], "description": "Sort collection by object attribute.", "type": "string" diff --git a/source/includes/wp-api-v3/_products.md b/source/includes/wp-api-v3/_products.md index 604295c2..fb9aad7c 100644 --- a/source/includes/wp-api-v3/_products.md +++ b/source/includes/wp-api-v3/_products.md @@ -1473,7 +1473,7 @@ woocommerce.get("products").parsed_response | `include` | array | Limit result set to specific ids. | | `offset` | integer | Offset the result set by a specific number of items. | | `order` | string | Order sort attribute ascending or descending. Options: `asc` and `desc`. Default is `desc`. | -| `orderby` | string | Sort collection by object attribute. Options: `date`, `id`, `include`, `title` and `slug`. Default is `date`. | +| `orderby` | string | Sort collection by object attribute. Options: `date`, `id`, `include`, `title`, `slug`, `price`, `popularity` and `rating`. Default is `date`. | | `parent` | array | Limit result set to those of particular parent IDs. | | `parent_exclude` | array | Limit result set to all items except those of a particular parent ID. | | `slug` | string | Limit result set to products with a specific slug. |