Skip to content

Commit 6524d11

Browse files
Merge pull request #202 from shunjilin/trunk
Update v3/products orderby to include 'price', 'popularity', 'rating'
2 parents c86d230 + efcd95a commit 6524d11

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -6070,7 +6070,10 @@ woocommerce.get("").parsed_response
60706070
"id",
60716071
"include",
60726072
"title",
6073-
"slug"
6073+
"slug",
6074+
"price",
6075+
"popularity",
6076+
"rating"
60746077
],
60756078
"description": "Sort collection by object attribute.",
60766079
"type": "string"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ woocommerce.get("products").parsed_response
14731473
| `include` | array | Limit result set to specific ids. |
14741474
| `offset` | integer | Offset the result set by a specific number of items. |
14751475
| `order` | string | Order sort attribute ascending or descending. Options: `asc` and `desc`. Default is `desc`. |
1476-
| `orderby` | string | Sort collection by object attribute. Options: `date`, `id`, `include`, `title` and `slug`. Default is `date`. |
1476+
| `orderby` | string | Sort collection by object attribute. Options: `date`, `id`, `include`, `title`, `slug`, `price`, `popularity` and `rating`. Default is `date`. |
14771477
| `parent` | array | Limit result set to those of particular parent IDs. |
14781478
| `parent_exclude` | array | Limit result set to all items except those of a particular parent ID. |
14791479
| `slug` | string | Limit result set to products with a specific slug. |

0 commit comments

Comments
 (0)