22
33The product custom fields API allows you to view the custom field names that have been recorded.
44
5- ## Product custom fields properties ##
5+ ## Available parameters ##
66
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 ` . |
1116
1217## Retrieve product custom field names ##
1318
@@ -16,7 +21,7 @@ This API lets you retrieve filtered custom field names.
1621<div class =" api-endpoint " >
1722 <div class="endpoint-data">
1823 <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>
2025 </div>
2126</div >
2227
0 commit comments