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.
WP_REST_Autosaves_Controller::create_item_permissions_check
Checks if a given request has access to create an autosave revision.
Advertisement
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.
WP_REST_Autosaves_Controller::__construct
Constructor.
Advertisement
WP_REST_Autosaves_Controller
Core class used to access autosaves via the REST API.
rest_after_insert_attachment
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
update_{$meta_type}_metadata_cache
Filters whether to update the metadata cache of a specific type.
delete_{$meta_type}_metadata_by_mid
Filters whether to delete metadata of a specific type by meta ID.
Advertisement
update_{$meta_type}_metadata_by_mid
Filters whether to update metadata of a specific type by meta ID.
get_{$meta_type}_metadata_by_mid
Filters whether to retrieve metadata of a specific type by meta ID.
wp_is_json_request
Checks whether current request is a JSON request, or is expecting a JSON response.