Registers the routes for the objects of the controller.
File: src/db-objects/elements/element-types/rest-element-types-controller.php
REST_Element_Types_Controller::get_items_permissions_check()
Checks whether a given request has permission to read types.
REST_Element_Types_Controller::get_items()
Retrieves a collection of element types.
REST_Element_Types_Controller::get_item_permissions_check()
Checks whether a given request has permission to read a type.
REST_Element_Types_Controller::get_item()
Retrieves a specific element type.
REST_Element_Types_Controller::prepare_item_for_response()
Prepares an element type for response.
REST_Element_Types_Controller::prepare_links()
Prepares links for the request.
REST_Element_Types_Controller::get_item_schema()
Retrieves the element type’s schema, conforming to JSON Schema.
REST_Element_Types_Controller::get_collection_params()
Retrieves the query params for collections.
REST_Element_Types_Controller
Class to access element types via the REST API.