Brisko

Options
in package

Handles the theme options.

This class serves as the entry point for all theme options using get_theme_mod.

Table of Contents

$theme_options  : array<string|int, mixed>
get()  : mixed
Get a single theme option value.
init()  : self
Initializes and returns an instance of this class.
set_theme_options()  : mixed
Initialize theme options by fetching them from WordPress.

Properties

$theme_options

private array<string|int, mixed> $theme_options = []

Theme options array.

Methods

get()

Get a single theme option value.

public get(string $key_id) : mixed
Parameters
$key_id : string

The theme mod to retrieve.

Return values
mixed

The value of the specified theme mod.

init()

Initializes and returns an instance of this class.

public static init() : self
Return values
self

set_theme_options()

Initialize theme options by fetching them from WordPress.

public set_theme_options() : mixed
Return values
mixed

Search results