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



wp_image_src_get_dimensions › WordPress Filter Hooks

Seit5.7.0
Veraltetn/v
apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id )
Parameter: (4)
  • (array|false) $dimensions Array with first element being the width and second element being the height, or false if dimensions could not be determined.
    Erforderlich: Ja
  • (string) $image_src The image source 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. Default 0.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the 'wp_image_src_get_dimensions' value.





Quellcode

return apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id );