On this page
do_action( 'wp_ajax_crop_image_pre_save', string $context, int $attachment_id, string $cropped )
Fires before a cropped image is saved.
Description
Allows to add filters to modify the way a cropped image is saved.
Parameters
$contextstring-
The Customizer control requesting the cropped image.
$attachment_idint-
The attachment ID of the original image.
$croppedstring-
Path to the cropped image file.
Source
File: wp-admin/includes/ajax-actions.php. View all references
do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped );
Related
Used By
| Used By | Description |
|---|---|
| wp_ajax_crop_image() wp-admin/includes/ajax-actions.php | Ajax handler for cropping an image. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_ajax_crop_image_pre_save