WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

Loader::get_user_data_values() public WC 1.0

For all the registered user data fields ( Loader::get_user_data_fields ), fetch the data for returning via the REST API.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Loader::get_user_data_values( $user );
$user(WP_User) (required)
Current user.

Code of Loader::get_user_data_values() WC 5.3.0

<?php
public static function get_user_data_values( $user ) {
	$values = array();
	foreach ( self::get_user_data_fields() as $field ) {
		$values[ $field ] = self::get_user_data_field( $user['id'], $field );
	}
	return $values;
}