WordPress at Your Fingertips
filter is not described

wp_ajax_cropped_attachment_id filter-hook . WP 4.3.0

Filters the attachment ID for a cropped image.


add_filter( 'wp_ajax_cropped_attachment_id', 'filter_function_name_2881', 10, 2 );
function filter_function_name_2881( $attachment_id, $context ){
	// filter...

	return $attachment_id;
The attachment ID of the cropped image.
The Customizer control requesting the cropped image.

Where the hook is called

wp-admin/includes/ajax-actions.php 3980
$attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context );

Where in WP core the hook is used WordPress

Usage not found.