function synved_option_setting_sanitize_cb($id, $values) { if ($values != null && is_array($values)) { foreach ($values as $name => $value) { $values[$name] = synved_option_item_sanitize_value($id, $name, $values[$name]); } return $values; } return array(); }
function synved_option_set($id, $name, $value) { global $synved_option_list; $options_name = synved_option_name_default($id); $options = get_option($options_name); $options[$name] = synved_option_item_sanitize_value($id, $name, $value); update_option($options_name, $options); unset($synved_option_list[$id]['values']); }