wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_image_src_get_dimensions › Filtr WordPress Hooks

Od5.7.0
Przestarzałyn/a
› apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id )
Parametry: (4)
  • () dimensions Array with first element being the width and second element being the height, or false if dimensions could not be determined.
    Wymagane: Tak
  • () image_src The image source file.
    Wymagane: Tak
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Wymagane: Tak
  • () attachment_id The image attachment ID. Default 0.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the wp_image_src_get_dimensions() value.





Źródło

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