WordPress at a glance
filter is not described

wp_edited_image_metadata filter-hook . WP 5.5.0

Filters the meta data for the new image created by editing an existing image.

Usage

add_filter( 'wp_edited_image_metadata', 'filter_function_name_4892', 10, 3 );
function filter_function_name_4892( $new_image_meta, $new_attachment_id, $attachment_id ){
	// filter...

	return $new_image_meta;
}
$new_image_meta(array)
Meta data for the new image.
$new_attachment_id(int)
Attachment post ID for the new image.
$attachment_id(int)
Attachment post ID for the edited (parent) image.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

WP_REST_Attachments_Controller::edit_media_item()
wp_edited_image_metadata
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php 624
$new_image_meta = apply_filters( 'wp_edited_image_metadata', $new_image_meta, $new_attachment_id, $attachment_id );

Где используется хук в ядре WP

Использование не найдено.