Méthode | Description | |
---|---|---|
__construct ( ) | Constructor. | |
get_collection_params ( ) : array | Retrieves the query params for collections. | |
get_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | Retrieves a specific taxonomy. | |
get_item_permissions_check ( WP_REST_Request $request ) : true | WP_Error | Checks if a given request has access to a taxonomy. | |
get_item_schema ( ) : array | Retrieves the taxonomy's schema, conforming to JSON Schema. | |
get_items ( WP_REST_Request $request ) : WP_REST_Response | Retrieves all public taxonomies. | |
get_items_permissions_check ( WP_REST_Request $request ) : true | WP_Error | Checks whether a given request has permission to read taxonomies. | |
prepare_item_for_response ( stdClass $taxonomy, WP_REST_Request $request ) : WP_REST_Response | Prepares a taxonomy object for serialization. | |
register_routes ( ) | Registers the routes for the objects of the controller. |
public get_collection_params ( ) : array | ||
Résultat | array | Collection parameters. |
public get_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Response | WP_Error | Response object on success, or WP_Error object on failure. |
public get_item_permissions_check ( WP_REST_Request $request ) : true | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | true | WP_Error | True if the request has read access for the item, otherwise false or WP_Error object. |
public get_item_schema ( ) : array | ||
Résultat | array | Item schema data. |
public get_items ( WP_REST_Request $request ) : WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Response | Response object on success, or WP_Error object on failure. |
public get_items_permissions_check ( WP_REST_Request $request ) : true | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | true | WP_Error | True if the request has read access, WP_Error object otherwise. |
public prepare_item_for_response ( stdClass $taxonomy, WP_REST_Request $request ) : WP_REST_Response | ||
$taxonomy | stdClass | Taxonomy data. |
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Response | Response object. |
public register_routes ( ) |