wp_copy_parent_attachment_properties


wp_copy_parent_attachment_properties ( $cropped, $parent_attachment_id, $context = '' )

Parameters:
  • (string) cropped Path to the cropped image file.
  • (int) parent_attachment_id Parent file Attachment ID.
  • (string) context Control calling the function.
Returns:
  • (array) Properties of attachment.
Defined at:

Description

Copy parent attachment properties to newly cropped image.

Related Functions

wp_prepare_attachment_for_js, wp_count_attachments, wp_get_attachment_caption, _wp_get_attachment_relative_path, wp_delete_attachment_files

Top Google Results

User discussions

wpseek mobile