_wp_get_image_size_from_meta


_wp_get_image_size_from_meta ( $size_name, $image_meta )

Access:
  • private
Parameters:
  • (string) size_name Image size. Accepts any registered image size name.
  • (array) image_meta The image meta data.
Returns:
  • (array|false) { Array of width and height or false if the size isn't present in the meta data. @type int $0 Image width. @type int $1 Image height. }
Defined at:

Description

Get the image size as array from its meta data.Used for responsive images.

Related Functions

_wp_get_sources_from_meta, wp_get_image_mime, wp_getimagesize, _wp_get_image_suffix, wp_get_image_editor

Top Google Results

User discussions

wpseek mobile