Core Function
View Source on Trac ↗ _wp_image_meta_replace_original()
_wp_image_meta_replace_original( mixed $saved_data, mixed $original_file, mixed $image_meta, mixed $attachment_id ) Updates the attached file and image meta data when the original image was edited.
Parameters 4 required
| Name / Type | Description |
|---|---|
| $saved_data array | The data returned from WP_Image_Editor after successfully saving an image. Required |
| $original_file string | Path to the original file. Required |
| $image_meta array | The image meta data. Required |
| $attachment_id int | The attachment post ID. Required |
Return Value
(array)
The updated image meta data.
Function Information
Since Version
5.3.0
Source File
wp-admin/includes/image.php
Advertisement