Exemple #1
0
/**
 * Returns the options array for Fruitful theme.
 *
 * @since Fruitful theme 1.0
 */
function fruitful_get_theme_options()
{
    $saved = (array) get_option('fruitful_theme_options');
    $defaults = fruitful_get_default_array();
    $defaults = apply_filters('fruitful_default_theme_options', $defaults);
    $options = wp_parse_args($saved, $defaults);
    $options = array_intersect_key($options, $defaults);
    return $options;
}
Exemple #2
0
function fruitful_get_theme_options()
{
    global $fruitful_theme_options;
    return wp_parse_args(get_option($fruitful_theme_options->args['opt_name'], array()), fruitful_get_default_array());
}