Recent

wzkb_get_optionfunction

wzkb_get_option()

Get an option.

Looks to see if the specified setting exists and returns the default value if it doesn’t.

Since: 1.2.0
Source: includes/options-api.php line 42

Signature

function wzkb_get_option( $key = ..., $default_value = ... ): mixed;

Parameters

Type Name Description
string $key Option to fetch.
mixed $default_value Default option.

Returns

mixed — The option value or the default value if the option does not exist.