Settings

Functions


// Retrieve all settings
get_settings();

// Retrieve settings by keys
get_settings(['key1', 'key2']);

mixed get_settings ( $keys = [] )
$keys array optional, by default empty array
Returns array of settings ['key' => 'value'] or single setting value.

// Retrieve setting by key = 'key'
get_setting('key');

mixed get_setting ( $key )
$key string required, setting key
Returns setting value. On failure return false.