A WordPress-centric search engine for devs and theme authors



wp_image_src_get_dimensions ›

Since5.7.0
Deprecatedn/a
apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id )
Parameters: (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.
    Required: Yes
  • (string) $image_src The image source 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. Default 0.
    Required: Yes
Defined at:
Codex:

Filters the 'wp_image_src_get_dimensions' value.





Source

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