WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_ajax_crop_image_pre_save

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/ajax-actions.php do_action 4008 /**
* Fires before a cropped image is saved.
*
* Allows to add filters to modify the way a cropped image is saved.
*
* @since 4.3.0
*
* @param string $context The Customizer control requesting the cropped image.
* @param int $attachment_id The attachment ID of the original image.
* @param string $cropped Path to the cropped image file.
*/

Hook Parameters

Parameter Type Name Description
string $context The Customizer control requesting the cropped image.
int $attachment_id The attachment ID of the original image.
string $cropped Path to the cropped image file.