WPDev.one
Core Function
View Source on Trac ↗

wp_copy_parent_attachment_properties()

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

Copy parent attachment properties to newly cropped image.

Parameters 2 required

Name / Type Description
$cropped
string

Path to the cropped image file.

Required
$parent_attachment_id
int

Parent file Attachment ID.

Required
$context
string

Control calling the function.

Return Value

(array)
Properties of attachment.

Function Information

Since Version
6.5.0
Source File
wp-admin/includes/image.php
Advertisement