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.


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;
Whether the image relative path from the image meta matches the end of the URI or path to the image file.
Full path or URI to the tested image file.
The image meta data as returned by 'wp_get_attachment_metadata()'.
The image attachment ID or 0 if not supplied.


Since 5.5.0 Introduced.

Where the hook is called

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.