Function: has_image_size

has_image_size( string $name )

Check if an image size exists.

Parameters

Name Type(s) Default Value Description
$name string

The image size to check.

Returns

boolean

True if the image size exists, false if not.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.