WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

Loader::update_user_data_field() public WC 1.0

Helper to update user data fields.

{} It's a method of the class: Loader{}

No Hooks.

Return

null. Nothing.

Usage

$result = Loader::update_user_data_field( $user_id, $field, $value );
$user_id(int) (required)
User ID.
$field(string) (required)
Field name.
$value(mixed) (required)
Field value.

Code of Loader::update_user_data_field() WC 5.2.2

<?php
public static function update_user_data_field( $user_id, $field, $value ) {
	update_user_meta( $user_id, 'woocommerce_admin_' . $field, $value );
}