2
2
3
3
The product custom fields API allows you to view the custom field names that have been recorded.
4
4
5
- ## Product custom fields properties ##
5
+ ## Available parameters ##
6
6
7
- | Attribute | Type | Description |
8
- | --------- | ------ | ----------------------------------------------------------------------------------------------------------- |
9
- | ` key ` | string | The custom field key. |
10
- | ` value ` | string | The value set for the key. |
7
+ | Parameter | Type | Description |
8
+ | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
9
+ | ` context ` | string | Scope under which the request is made; determines fields present in response. Options: ` view ` and ` edit ` . Default is ` view ` . |
10
+ | ` page ` | integer | Current page of the collection. Default is ` 1 ` . |
11
+ | ` per_page ` | integer | Maximum number of items to be returned in result set. Default is ` 10 ` . |
12
+ | ` search ` | string | Limit results to those matching a string. |
13
+ | ` exclude ` | array | Ensure result set excludes specific IDs. |
14
+ | ` include ` | array | Limit result set to specific ids. |
15
+ | ` order ` | string | Order sort attribute ascending or descending. Options: ` asc ` and ` desc ` . Default is ` desc ` . |
11
16
12
17
## Retrieve product custom field names ##
13
18
@@ -16,7 +21,7 @@ This API lets you retrieve filtered custom field names.
16
21
<div class =" api-endpoint " >
17
22
<div class="endpoint-data">
18
23
<i class="label label-get">GET</i>
19
- <h6>/wp-json// wc/v3/products/custom-fields/names</h6>
24
+ <h6>/wp-json/wc/v3/products/custom-fields/names</h6>
20
25
</div>
21
26
</div >
22
27
0 commit comments