Retrieves the query params for collections.
WP_REST_Post_Types_Controller::get_item_schema
Retrieves the post type’s schema, conforming to JSON Schema.
rest_prepare_post_type
Filters a post type returned from the API.
WP_REST_Post_Types_Controller::prepare_item_for_response
Prepares a post type object for serialization.
Advertisement
WP_REST_Post_Types_Controller::get_item
Retrieves a specific post type.
WP_REST_Post_Types_Controller::get_items
Retrieves all public post types.
WP_REST_Post_Types_Controller::get_items_permissions_check
Checks whether a given request has permission to read types.
WP_REST_Post_Types_Controller::register_routes
Registers the routes for the objects of the controller.
Advertisement
WP_REST_Post_Types_Controller::__construct
Constructor.
WP_REST_Post_Types_Controller
Core class to access post types via the REST API.