case 'select': case 'color': case 'password': case 'radio': $option_value = $option_value; break; default: break; } if (!is_null($option_value)) { if ($option_name && $setting_name) { if (!isset($update_options[$option_name])) { $update_options[$option_name] = get_option($option_name, array()); } if (!is_array($update_options[$option_name])) { $update_options[$option_name] = array(); } $update_options[$option_name][$setting_name] = $option_value; } else { $update_options[$option_name] = $option_value; } } } foreach ($update_options as $name => $value) { update_option($name, $value); } return true; } } Donation_Button_Html_output::init();
public static function donation_button_twilio_setting_save_field() { $twilio_sms_setting_fields = self::donation_button_twilio_setting_fields(); $Html_output = new Donation_Button_Html_output(); $Html_output->save_fields($twilio_sms_setting_fields); }