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: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Copy parent attachment properties to newly cropped image.