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 Parameters


(bool) Whether the image relative path from the image meta matches the end of the URI or path to the image file.


(string) Full path or URI to the tested image file.


(array) The image meta data as returned by 'wp_get_attachment_metadata()'.


(int) The image attachment ID or 0 if not supplied.

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.