apply_filters( 'wp_image_file_matches_image_meta', bool $match, string $image_location, array $image_meta, int $attachment_id )
Filters whether an image path or URI matches image meta.
Parameters
- $match
-
(bool) 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.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_image_file_matches_image_meta