Свойство | Тип | Описание | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. | |
$taxonomy | string | Taxonomy. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
update_term_meta_fields ( WP_Term $term, WP_REST_Request $request ) : boolean | WP_Error | Update term meta fields. |
public get_item_schema ( ) : array | ||
Результат | 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 | |
Результат | 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 | |
Результат | boolean | WP_Error |