rest_insert_attachment
Action Hook: Fires after a single attachment is created or updated via the REST API.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:309
Action Hook: Fires after a single attachment is created or updated via the REST API.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:309
Method: Updates a single attachment.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:325
Method: Prepares a single attachment for create or update.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:690
Method: Prepares a single attachment output for response.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:728
Filter Hook: Filters an attachment returned from the REST API.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:847
Method: Retrieves the attachment’s schema, conforming to JSON Schema.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:857
Method: Handles an upload via raw POST data.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:979
Method: Parses filename from a Content-Disposition header value.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1111
Method: Retrieves the query params for collections of attachments.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1159
Method: Validates whether the user can query private statuses.
Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:691