Filters whether an image path or URI matches image meta.
$matchbool$image_locationstring$image_metaarray$attachment_idintwp-includes/media.php:1701wp_image_file_matches_image_meta() * @param bool $match Whether the image relative path from the image meta * matches the end of the URI or path to the image file. * @param string $image_location Full path or URI to the tested image file. * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. * @param int $attachment_id The image attachment ID or 0 if not supplied. */ return apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id );} /** * Determines an image's width and height dimensions based on the source file. * * @since 5.5.0Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.