Function __global->find_theme_dark
Definitions
sources/themewizard.php
- Find whether a theme is dark.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $theme | ?ID_TEXT | No | No | Null | N/A | N/A | The theme name (null: the current theme) |
Returns
- Whether the theme is dark
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a theme is dark.
*
* @param ?ID_TEXT $theme The theme name (null: the current theme)
* @return boolean Whether the theme is dark
*/
function find_theme_dark(?string $theme = null) : bool
* Find whether a theme is dark.
*
* @param ?ID_TEXT $theme The theme name (null: the current theme)
* @return boolean Whether the theme is dark
*/
function find_theme_dark(?string $theme = null) : bool

