do_action( ‘wp_ajax_crop_image_pre_save’, string $context, int $attachment_id, string $cropped )

In this article

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

do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.