This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
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::register_routes
Registers the routes for attachments.
WP_REST_Attachments_Controller
Core controller used to access attachments via the REST API.