Used By
| Used By | Description |
|---|---|
| wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::insert_attachment() | Inserts the attachment post in the database. Does not update the attachment meta. |
Fires after a single attachment is created or updated via the REST API.
(WP_Post) Inserted or updated attachment object.
(WP_REST_Request) The request sent to the API.
(bool) True when creating an attachment, false when updating.
File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_insert_attachment