Get User’s Custom Field

get_user_field($user_id, $field)

This function returns a custom user’s meta field.

Options:

OPTIONS DEFAULT ALTERNATIVES
user_id User ID should be passed as parameter current or custom user id
field Custom meta field name. N/A

Example:

			
global $xoouserultra;
			
//get user url
$user_id = get_current_user_id();				
$user_description = $xoouserultra->api->get_user_field($user_id, 'description' );
			
echo $user_description;