_wp_image_meta_replace_original


_wp_image_meta_replace_original ( $saved_data, $original_file, $image_meta, $attachment_id )

Access:
  • private
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:

Description

Updates the attached file and image meta data when the original image was edited.

Related Functions

wp_image_editor, wp_image_matches_ratio, wp_read_image_metadata, wp_get_cookie_login, wp_get_original_referer

Top Google Results

User discussions

wpseek mobile