A WordPress-centric search engine for devs and theme authors



wp_image_file_matches_image_meta ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id )
Parameters: (4)
  • (bool) $match Whether the image relative path from the image meta matches the end of the URI or path to the image file.
    Required: Yes
  • (string) $image_location Full path or URI to the tested image file.
    Required: Yes
  • (array) $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Required: Yes
  • (int) $attachment_id The image attachment ID or 0 if not supplied.
    Required: Yes
Defined at:
Codex:

Filters whether an image path or URI matches image meta.





Source

return apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id );