Docs

EVF_Settings_API::get_option( string $key, mixed $empty_value = null ): string

Get option from DB.

Description

Gets an option from the settings API, using defaults if necessary to prevent undefined notices.

Parameters

$keystringrequired
Option key.
$empty_valuemixedoptional
Value when empty.

Default:null

Return

string The value specified for the option or a default value for the option.