Sanitizes and validates the list of post statuses, including whether the user can query private statuses.
rest_{$this->post_type}_collection_params
Filter collection parameters for the posts controller.
WP_REST_Posts_Controller::get_collection_params
Retrieves the query params for the posts collection.
WP_REST_Posts_Controller::get_schema_links
Retrieve Link Description Objects that should be added to the Schema for the posts collection.
Advertisement
rest_{$this->post_type}_item_schema
Filter the post’s schema.
WP_REST_Posts_Controller::get_item_schema
Retrieves the post’s schema, conforming to JSON Schema.
WP_REST_Posts_Controller::get_available_actions
Get the link relations available for the post and current user.
WP_REST_Posts_Controller::prepare_links
Prepares links for the request.
Advertisement
WP_REST_Posts_Controller::protected_title_format
Overwrites the default protected title format.
rest_prepare_{$this->post_type}
Filters the post data for a response.
WP_REST_Posts_Controller::check_delete_permission
Checks if a post can be deleted.
WP_REST_Posts_Controller::prepare_item_for_response
Prepares a single post output for response.
Advertisement
WP_REST_Posts_Controller::check_create_permission
Checks if a post can be created.
WP_REST_Posts_Controller::check_update_permission
Checks if a post can be edited.
WP_REST_Posts_Controller::check_read_permission
Checks if a post can be read.