Get all settings recognized by this module. This function will return all
settings whether or not they have been stored in the database yet. This
ensures that all keys are available at all times.
In the event that you only require one setting, you may pass its name as the
first parameter to the function and only that value will be returned.
public static get_setting ( string $key = 'all' ) : mixed | ||
$key | string | The key of a recognized setting. |
return | mixed | Array of all settings by default. A single value if passed as first parameter. |