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::get_item_schema
Retrieves the attachment’s schema, conforming to JSON Schema.
WP_REST_Attachments_Controller::upload_from_data
Handles an upload via raw POST data.
rest_prepare_attachment
Filters an attachment returned from the REST API.
Advertisement
WP_REST_Attachments_Controller::prepare_item_for_response
Prepares a single attachment output for response.
WP_REST_Attachments_Controller::prepare_item_for_database
Prepares a single attachment for create or update.
WP_REST_Attachments_Controller::post_process_item_permissions_check
Checks if a given request can perform post processing on an attachment.
WP_REST_Attachments_Controller::post_process_item
Performs post processing on an attachment.
Advertisement
WP_REST_Attachments_Controller::update_item
Updates a single attachment.
rest_insert_attachment
Fires after a single attachment is created or updated via the REST API.
WP_REST_Attachments_Controller::insert_attachment
Inserts the attachment post in the database. Does not update the attachment meta.