WPDev.one
Core Function
View Source on Trac ↗

_wp_get_image_size_from_meta()

_wp_get_image_size_from_meta( mixed $size_name, mixed $image_meta )

Gets the image size as array from its meta data.

Parameters 2 required

Name / Type Description
$size_name
string

Image size. Accepts any registered image size name.

Required
$image_meta
array

The image meta data.

Required

Return Value

((array)
(array | false) { Array of width and height or false if the size isn't present in the meta data.

Function Information

Since Version
4.4.0
Source File
wp-includes/media.php
Advertisement