Example #1
0
function cultiv8_option($option, $default = false)
{
    if (class_exists('CTC_Extender') && ctcex_has_option($option)) {
        return ctcex_get_option($option, $default);
    }
    return get_theme_mod($option, $default);
}
Example #2
0
function harvest_option($option, $default = false)
{
    if (class_exists('CTC_Extender') && ctcex_has_option($option)) {
        return ctcex_get_option($option, $default);
    }
    $theme_data = wp_get_theme();
    $theme_safename = sanitize_title($theme_data);
    $options = get_option($theme_safename . '-options');
    if (isset($options[$option])) {
        return $options[$option];
    } else {
        return $default;
    }
}