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_items_permissions_check
Checks if a given request has access to get autosaves.
WP_REST_Autosaves_Controller::get_parent
Get the parent post.
WP_REST_Autosaves_Controller::register_routes
Registers the routes for autosaves.
WP_REST_Autosaves_Controller::__construct
Constructor.
Advertisement
WP_REST_Attachments_Controller::check_upload_size
Determine if uploaded file exceeds space quota on multisite.
WP_REST_Attachments_Controller::get_media_types
Retrieves the supported media types.
WP_REST_Attachments_Controller::upload_from_file
Handles an upload via multipart/form-data ($_FILES).
WP_REST_Attachments_Controller::get_collection_params
Retrieves the query params for collections of attachments.
Advertisement
WP_REST_Attachments_Controller::get_filename_from_disposition
Parses filename from a Content-Disposition header value.
WP_REST_Attachments_Controller::upload_from_data
Handles an upload via raw POST data.
WP_REST_Attachments_Controller::get_item_schema
Retrieves the attachment’s schema, conforming to JSON Schema.