Carbon_Fields\Helper\Helper::get_theme_option PHP Method

get_theme_option() public static method

Retrieve theme option field value.
public static get_theme_option ( string $name, string $type = null ) : mixed
$name string Custom field name.
$type string Custom field type (optional).
return mixed Option value.
    public static function get_theme_option($name, $type = null)
    {
        return self::get_field_value('theme_options', $name, $type);
    }

Usage Example

Example #1
0
 function carbon_get_theme_option($name, $type = null)
 {
     return Helper::get_theme_option($name, $type);
 }