Description
Fires after a single attachment is completely created or updated via the REST API.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | 214 |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | 442 |
Parameters
Type | Name | Description |
---|---|---|
WP_Post | $attachment | Inserted or updated attachment object. |
WP_REST_Request | $request | Request object. |
bool | $creating | True when creating an attachment, false when updating. |
PHP Doc
/**
* Fires after a single attachment is completely created or updated via the REST API.
*
* @since 5.0.0
*
* @param WP_Post $attachment Inserted or updated attachment object.
* @param WP_REST_Request $request Request object.
* @param bool $creating True when creating an attachment, false when updating.
*/