Function __global->themewizard_find_theme_images_in_scope
Definitions
sources/themewizard.php
- Find theme images in the scope of the Theme Wizard.themewizard_find_theme_images_in_scope should be called at least once before running this function.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $source_theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme it's being generated from |
| $seed | ?string | No | No | Null | N/A | N/A | Seed colour to use (null: don't compare to source theme's seed) |
| $dark | ?boolean | No | No | Null | N/A | N/A | Whether it will be a dark theme (null: don't compare to source theme's seed) |
Returns
- List of theme image codes
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find theme images in the scope of the Theme Wizard.themewizard_find_theme_images_in_scope should be called at least once before running this function.
*
* @param ID_TEXT $source_theme The theme it's being generated from
* @param ?string $seed Seed colour to use (null: don't compare to source theme's seed)
* @param ?boolean $dark Whether it will be a dark theme (null: don't compare to source theme's seed)
* @return array List of theme image codes
*/
function themewizard_find_theme_images_in_scope(string $source_theme, ?string $seed = null, ?bool $dark = null) : array
* Find theme images in the scope of the Theme Wizard.themewizard_find_theme_images_in_scope should be called at least once before running this function.
*
* @param ID_TEXT $source_theme The theme it's being generated from
* @param ?string $seed Seed colour to use (null: don't compare to source theme's seed)
* @param ?boolean $dark Whether it will be a dark theme (null: don't compare to source theme's seed)
* @return array List of theme image codes
*/
function themewizard_find_theme_images_in_scope(string $source_theme, ?string $seed = null, ?bool $dark = null) : array

