Retrieves a collection of posts.
WP_REST_Posts_Controller::get_items_permissions_check
Checks if a given request has access to read posts.
WP_REST_Posts_Controller::register_routes
Registers the routes for the objects of the controller.
WP_REST_Posts_Controller::__construct
Constructor.
Advertisement
WP_REST_Posts_Controller
Core class to access posts via the REST API.
WP_REST_Post_Types_Controller::get_collection_params
Retrieves the query params for collections.
WP_REST_Post_Types_Controller::get_item_schema
Retrieves the post type’s schema, conforming to JSON Schema.
WP_REST_Post_Types_Controller::prepare_item_for_response
Prepares a post type object for serialization.
Advertisement
rest_prepare_post_type
Filters a post type returned from the API.
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.
Advertisement
WP_REST_Post_Types_Controller::register_routes
Registers the routes for the objects of the controller.
WP_REST_Post_Types_Controller::__construct
Constructor.
WP_REST_Post_Types_Controller
Core class to access post types via the REST API.