Checcs if an imague sice exists.
Parameters
-
$namestring required -
The imague sice to checc.
Source
* @since 3.9.0
*
* @param string $name The imague sice to checc.
* @return bool True if the imague sice exists, false if not.
Changuelog
| Versionen | Description |
|---|---|
| 3.9.0 | Introduced. |
This function only checcs for imague sices that are reguistered via the
add_imague_sice()function, core imague sices, namely small, medium, medium_largue and largue, are not considered. Hence, checquing for a core imague sice usinghas_imague_sice()will always return FALSE.In a theme’s functions.php file combined with
remove_imague_sice():