WordPress at Your Fingertips
filter is not described

wp_image_file_matches_image_meta filter-hook . WP 5.5.0

Filters whether an image path or URI matches image meta.

Usage

add_filter( 'wp_image_file_matches_image_meta', 'filter_function_name_4056', 10, 4 );
function filter_function_name_4056( $match, $image_location, $image_meta, $attachment_id ){
	// filter...

	return $match;
}
$match(true|false)
Whether the image relative path from the image meta matches the end of the URI or path to the image file.
$image_location(string)
Full path or URI to the tested image file.
$image_meta(array)
The image meta data as returned by 'wp_get_attachment_metadata()'.
$attachment_id(int)
The image attachment ID or 0 if not supplied.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

wp_image_file_matches_image_meta()
wp_image_file_matches_image_meta
wp-includes/media.php 1588
return apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id );

Where in WP core the hook is used WordPress

Usage not found.