On this page
apply_filters( 'wp_edited_image_metadata', array $new_image_meta, int $new_attachment_id, int $attachment_id )
Filters the meta data for the new image created by editing an existing image.
Parameters
$new_image_metaarray-
Meta data for the new image.
$new_attachment_idint-
Attachment post ID for the new image.
$attachment_idint-
Attachment post ID for the edited (parent) image.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php. View all references
$new_image_meta = apply_filters( 'wp_edited_image_metadata', $new_image_meta, $new_attachment_id, $attachment_id );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Attachments_Controller::edit_media_item() wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Applies edits to a media item and creates a new attachment record. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_edited_image_metadata