_wp_image_meta_replace_original
- %1$s is private and should not be used in themes or plugins directly.
_wp_image_meta_replace_original ( $saved_data, $original_file, $image_meta, $attachment_id )
Access:Parameters:- (array) saved_data The data returned from WP_Image_Editor after successfully saving an image.
- (string) original_file Path to the original file.
- (array) image_meta The image meta data.
- (int) attachment_id The attachment post ID.
Returns:- (array) The updated image meta data.
Defined at:Change Log: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Updates the attached file and image meta data when the original image was edited.