Core Class
View Source on Trac ↗
Core Class
WP_REST_Taxonomies_Controller
class WP_REST_Taxonomies_Controller
// Constructor: function Object() { [native code] } Core class used to manage taxonomies via the REST API.
Methods 10 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor. |
| register_routes() void | Registers the routes for taxonomies. |
| get_items_permissions_check() (true | Checks whether a given request has permission to read taxonomies.
Parameters: $request: mixed |
| get_items() WP_REST_Response | Retrieves all public taxonomies.
Parameters: $request: mixed |
| get_item_permissions_check() (bool | Checks if a given request has access to a taxonomy.
Parameters: $request: mixed |
| get_item() (WP_REST_Response | Retrieves a specific taxonomy.
Parameters: $request: mixed |
| prepare_item_for_response() WP_REST_Response | Prepares a taxonomy object for serialization.
Parameters: $item: mixed, $request: mixed |
| prepare_links() array | Prepares links for the request.
Parameters: $taxonomy: mixed |
| get_item_schema() array | Retrieves the taxonomy's schema, conforming to JSON Schema. |
| get_collection_params() array | Retrieves the query params for collections. |
Class Information
Since Version
4.7.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
Advertisement