has_image_size( string $name ): bool

Checks if an image size exists.

Parameters

$namestringrequired
The image size to check.

Return

bool True if the image size exists, false if not.

Source

* @since 3.9.0
*
* @param string $name The image size to check.
* @return bool True if the image size exists, false if not.

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.