Filter hook 'wp_image_file_matches_image_meta'

in WP Core File wp-includes/media.php at line 1658

Description

Filters whether an image path or URI matches image meta.

Occurrences

Filename Line Number
wp-includes/media.php 1658

Parameters

Type Name Description
bool $match Whether the image relative path from the image meta matches the end of the URI or path to the image file.
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.

PHP Doc

/**
	 * 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.
	 */