_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|bool) { 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_image_mime, wp_get_image_editor, wp_create_image_subsizes, get_date_from_gmt, wp_get_additional_image_sizes

Top Google Results

User discussions

wpseek mobile