_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:
Change Log:
  • 6: .

Description

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

Related Functions

wp_image_editor, wp_read_image_metadata, wp_image_matches_ratio, wp_get_theme_data_template_parts, wp_get_original_referer

Top Google Results

User discussions

wpseek mobile