wp_ajax_cropped_attachment_metadata filter-hookWP 4.3.0

Filters the cropped image attachment metadata.

Usage

add_filter( 'wp_ajax_cropped_attachment_metadata', 'wp_kama_ajax_cropped_attachment_metadata_filter' );

/**
 * Function for `wp_ajax_cropped_attachment_metadata` filter-hook.
 * 
 * @param array $metadata Attachment metadata.
 *
 * @return array
 */
function wp_kama_ajax_cropped_attachment_metadata_filter( $metadata ){

	// filter...
	return $metadata;
}
$metadata(array)
Attachment metadata.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

wp_ajax_crop_image()
wp_ajax_cropped_attachment_metadata
wp-admin/includes/ajax-actions.php 4084
$metadata = apply_filters( 'wp_ajax_cropped_attachment_metadata', $metadata );

Where the hook is used in WordPress

Usage not found.