WordPress at a glance
function is not described

wp_set_all_user_settings() WP 2.8.0

Private. Set all user interface settings.

  • Global. Array. $_updated_user_settings

No Hooks.

Return

true/false/null. False if the current user can't be found, null if the current user is not a super admin or a member of the site, otherwise true.

Usage

wp_set_all_user_settings( $user_settings );
$user_settings(array) (required)
User settings.

Code of wp set all user settings: wp-includes/option.php VER 5.0.3

<?php
function wp_set_all_user_settings( $user_settings ) {
	global $_updated_user_settings;

	if ( ! $user_id = get_current_user_id() ) {
		return false;
	}

	if ( ! is_user_member_of_blog() ) {
		return;
	}

	$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;
}