_wp_get_image_size_from_meta

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Get the image size as array from its meta data.

Syntax

_wp_get_image_size_from_meta( string $size_name, array $image_meta )

DescriptionDescription

Used for responsive images.

ParametersParameters

$size_name

(string) (Required) Image size. Accepts any valid image size name ('thumbnail', 'medium', etc.).

$image_meta

(array) (Required) The image meta data.

ReturnReturn

(array|bool) The image meta data as returned by wp_get_attachment_metadata().

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top