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.
WP_REST_Attachments_Controller::insert_attachment
Inserts the attachment post in the database. Does not update the attachment meta.
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.
Advertisement
WP_REST_Attachments_Controller::prepare_items_query
Determines the allowed query_vars for a get_items() response and prepares for WP_Query.
WP_REST_Attachments_Controller::register_routes
Registers the routes for attachments.
WP_REST_Response::get_curies
Retrieves the CURIEs (compact URIs) used for relations.
WP_REST_Response::as_error
Retrieves a WP_Error object from the response.
Advertisement
WP_REST_Response::is_error
Checks if the response is an error, i.e. >= 400 response code.
WP_REST_Response::set_matched_handler
Sets the handler that was responsible for generating the response.
WP_REST_Response::get_matched_handler
Retrieves the handler that was used to generate the response.