Retrieves the query params for the autosaves collection.
rest_prepare_autosave
Filters a revision returned from the API.
WP_REST_Autosaves_Controller::prepare_item_for_response
Prepares the revision for the REST response.
WP_REST_Autosaves_Controller::get_item_schema
Retrieves the autosave’s schema, conforming to JSON Schema.
Advertisement
WP_REST_Autosaves_Controller::create_post_autosave
Creates autosave for the specified post.
WP_REST_Autosaves_Controller::get_items
Gets a collection of autosaves using wp_get_post_autosave.
WP_REST_Autosaves_Controller::get_item
Get the autosave, if the ID is valid.
WP_REST_Autosaves_Controller::create_item
Creates, updates or deletes an autosave revision.
Advertisement
WP_REST_Autosaves_Controller::create_item_permissions_check
Checks if a given request has access to create an autosave revision.
WP_REST_Autosaves_Controller::get_parent
Get the parent post.
WP_REST_Autosaves_Controller::get_items_permissions_check
Checks if a given request has access to get autosaves.
WP_REST_Autosaves_Controller::register_routes
Registers the routes for autosaves.
Advertisement
WP_REST_Autosaves_Controller::__construct
Constructor.
WP_REST_Autosaves_Controller
Core class used to access autosaves via the REST API.