Retrieves the query params for collections of attachments.
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.
Advertisement
rest_prepare_attachment
Filters an attachment returned from the REST API.
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::update_item
Updates a single attachment.
Advertisement
rest_insert_attachment
Fires after a single attachment is created or updated via the REST API.
WP_REST_Attachments_Controller::create_item
Creates a single attachment.
WP_REST_Attachments_Controller::create_item_permissions_check
Checks if a given request has access to create an attachment.
WP_REST_Attachments_Controller::prepare_items_query
Determines the allowed query_vars for a get_items() response and prepares for WP_Query.
Advertisement
WP_REST_Attachments_Controller
Core controller used to access attachments via the REST API.
WP_REST_Request::parse_json_params
Parses the JSON parameters.
filter_default_option
Filters the default value for the option.