Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_image_file_matches_image_meta ›

Seit5.5.0
Veraltetn/v
apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id )
Parameter: (4)
  • (bool) $match Whether the image relative path from the image meta matches the end of the URI or path to the image file.
    Erforderlich: Ja
  • (string) $image_location Full path or URI to the tested image file.
    Erforderlich: Ja
  • (array) $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Erforderlich: Ja
  • (int) $attachment_id The image attachment ID or 0 if not supplied.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether an image path or URI matches image meta.





Quellcode

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