Registers the routes for revisions based on post types supporting revisions.
WP_REST_Revisions_Controller::__construct
Constructor.
WP_REST_Posts_Controller::sanitize_post_statuses
Sanitizes and validates the list of post statuses, including whether the user can query private statuses.
WP_REST_Posts_Controller::get_collection_params
Retrieves the query params for the posts collection.
Advertisement
WP_REST_Posts_Controller::get_schema_links
Retrieve Link Description Objects that should be added to the Schema for the posts collection.
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.
WP_REST_Posts_Controller::prepare_item_for_response
Prepares a single post output for response.
WP_REST_Posts_Controller::check_delete_permission
Checks if a post can be deleted.
WP_REST_Posts_Controller::check_create_permission
Checks if a post can be created.
Advertisement
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.
WP_REST_Posts_Controller::check_is_post_type_allowed
Checks if a given post type can be viewed or managed.