Retrieve user meta field for a user.

Signature

get_user_meta( $user_id, $key = '', $single = false )
user_id
 (int) User ID.
key
 (string) Optional. The meta key to retrieve. By default, returns data for all keys.
Default: ''
single
 (boolean) Whether to return a single value.
Default: false

Return

(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.

Source

function get_user_meta($user_id, $key = '', $single = false) {
	return get_metadata('user', $user_id, $key, $single);
}
WP Trac GitHub

Link here