function biography_color_reset($input) { if ($input == 1) { global $biography_customizer_defaults; /*getting fields*/ $biography_customizer_saved_values = biography_get_all_options(); /*setting fields */ $biography_customizer_saved_values['biography-h1-h6-color'] = $biography_customizer_defaults['biography-h1-h6-color']; $biography_customizer_saved_values['biography-link-color'] = $biography_customizer_defaults['biography-link-color']; $biography_customizer_saved_values['biography-link-hover-color'] = $biography_customizer_defaults['biography-link-hover-color']; $biography_customizer_saved_values['biography-site-identity-color'] = $biography_customizer_defaults['biography-site-identity-color']; $biography_customizer_defaults['biography-color-reset'] = ''; /*resetting fields*/ biography_reset_options($biography_customizer_saved_values); } else { return ''; } }
/** * Setting global values for all saved customizer values * * @since Biography 1.0.0 * * @param null * @return null * */ function biography_set_global() { /*Getting saved values start*/ $GLOBALS['biography_customizer_saved_options'] = biography_get_all_options(1); }