WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_image_file_matches_image_meta

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 1593 /**
* Filters whether an image path or URI matches image meta.
*
* @since 5.5.0
*
* @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.
*/

Hook Parameters

Parameter Type Name Description
bool $match Whether the image relative path from the image meta
string $image_location Full path or URI to the tested image file.
array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
int $attachment_id The image attachment ID or 0 if not supplied.