wpseek.com
				A WordPress-centric search engine for devs and theme authors
			wp_set_all_user_settings is private and should not be used in themes or plugins directly.
wp_set_all_user_settings › WordPress Function
Since2.8.0
Deprecatedn/a
› wp_set_all_user_settings ( $user_settings )
| Access: | 
 | 
| Parameters: | 
 | 
| Returns: | 
 | 
| Defined at: | 
 | 
| Codex: | 
Private. Sets all user interface settings.
Related Functions: get_all_user_settings, delete_all_user_settings, set_user_setting, wp_user_settings, get_user_setting
	Source
function wp_set_all_user_settings( $user_settings ) {
	global $_updated_user_settings;
	$user_id = get_current_user_id();
	if ( ! $user_id ) {
		return false;
	}
	if ( ! is_user_member_of_blog() ) {
		return null;
	}
	$settings = '';
	foreach ( $user_settings as $name => $value ) {
		$_name  = preg_replace( '/[^A-Za-z0-9_-]+/', '', $name );
		$_value = preg_replace( '/[^A-Za-z0-9_-]+/', '', $value );
		if ( ! empty( $_name ) ) {
			$settings .= $_name . '=' . $_value . '&';
		}
	}
	$settings = rtrim( $settings, '&' );
	parse_str( $settings, $_updated_user_settings );
	update_user_option( $user_id, 'user-settings', $settings, false );
	update_user_option( $user_id, 'user-settings-time', time(), false );
	return true;
}