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

$context

(string) The Customizer control requesting the cropped image.

$attachment_id

(int) The attachment ID of the original image.

$cropped

(string) Path to the cropped image file.


Source

File: wp-admin/includes/ajax-actions.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.3.0 Introduced.