public static function get_defaults($single_view = false) { if (empty($single_view)) { return apply_filters('wps_defaults', wps_get_options()); } else { return apply_filters('wps_defaults_single', wps_get_options()); } }
function wps_init_options() { $options = wps_get_options(); $options = wp_parse_args($options, WordPress_Starter::get_defaults()); $options = WordPress_Starter_Settings::validate_settings($options); update_option(WordPress_Starter_Settings::ID, $options); }