do_action( 'wp_ajax_crop_image_pre_save', string $context, int $attachment_id, string $cropped )

Fires before a cropped image is saved.

Description Description

Allows to add filters to modify the way a cropped image is saved.

Top ↑

Parameters Parameters


(string) The Customizer control requesting the cropped image.


(int) The attachment ID of the original image.


(string) Path to the cropped image file.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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