Property | Type | Description | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. | |
$taxonomy | string | Taxonomy. |
Method | Description | |
---|---|---|
get_item_schema ( ) : array | Get the Category schema, conforming to JSON Schema. | |
prepare_item_for_response ( WP_Term $item, WP_REST_Request $request ) : WP_REST_Response | Prepare a single product category output for response. |
Method | Description | |
---|---|---|
update_term_meta_fields ( WP_Term $term, WP_REST_Request $request ) : boolean | WP_Error | Update term meta fields. |
public get_item_schema ( ) : array | ||
return | array |
public prepare_item_for_response ( WP_Term $item, WP_REST_Request $request ) : WP_REST_Response | ||
$item | WP_Term | Term object. |
$request | WP_REST_Request | |
return | WP_REST_Response | $response |
protected update_term_meta_fields ( WP_Term $term, WP_REST_Request $request ) : boolean | WP_Error | ||
$term | WP_Term | |
$request | WP_REST_Request | |
return | boolean | WP_Error |