WP_REST_Attachments_Controller
Methods
1 to 16 of 16
- WP_REST_Attachments_Controller::check_upload_size() – Determine if uploaded file exceeds space quota on multisite.
- WP_REST_Attachments_Controller::create_item_permissions_check() – Checks if a given request has access to create an attachment.
- WP_REST_Attachments_Controller::edit_media_item_permissions_check() – Checks if a given request has access to editing media.
- WP_REST_Attachments_Controller::edit_media_item() – Applies edits to a media item and creates a new attachment record.
- WP_REST_Attachments_Controller::get_collection_params() – Retrieves the query params for collections of attachments.
- WP_REST_Attachments_Controller::get_edit_media_item_args() – Gets the request args for the edit item route.
- 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::get_media_types() – Retrieves the supported media types.
- WP_REST_Attachments_Controller::insert_attachment() – Inserts the attachment post in the database. Does not update the attachment meta.
- 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.
- WP_REST_Attachments_Controller::prepare_item_for_database() – Prepares a single attachment for create or update.
- WP_REST_Attachments_Controller::update_item() – Updates a single attachment.
- WP_REST_Attachments_Controller::upload_from_data() – Handles an upload via raw POST data.
- WP_REST_Attachments_Controller::upload_from_file() – Handles an upload via multipart/form-data ($_FILES).