Deletes a single revision.
WP_REST_Revisions_Controller::delete_item_permissions_check
Checks if a given request has access to delete a revision.
WP_REST_Revisions_Controller::get_item
Retrieves one revision from the collection.
WP_REST_Revisions_Controller::get_item_permissions_check
Checks if a given request has access to get a specific revision.
Advertisement
WP_REST_Revisions_Controller::get_items
Gets a collection of revisions.
WP_REST_Revisions_Controller::get_items_permissions_check
Checks if a given request has access to get revisions.
WP_REST_Revisions_Controller::__construct
Constructor.
WP_REST_Revisions_Controller::register_routes
Registers the routes for revisions based on post types supporting revisions.
Advertisement
WP_REST_Revisions_Controller
Core class used to access revisions via the REST API.
WP_REST_Posts_Controller::sanitize_post_statuses
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.
Advertisement
WP_REST_Posts_Controller::get_item_schema
Retrieves the post’s schema, conforming to JSON Schema.
WP_REST_Posts_Controller::prepare_links
Prepares links for the request.
WP_REST_Posts_Controller::protected_title_format
Overwrites the default protected title format.