Get User

load_user($value, $method)

This function returns one user from the database.

Options:

OPTIONS DEFAULT ALTERNATIVES
value There is no default value. One value should be specified You should use an id or an email address or an username
method There is no default method. One method should be specified. id,email or login

Example:

global $xoouserultra;
			
//get user url
$user_id = get_current_user_id();				
$current_user = $xoouserultra->api->load_user($user_id, 'id' );
			
echo 'Username: ' . $current_user->user_login  ;
echo 'User email: ' . $current_user->user_email ;
echo 'User first name: ' . $current_user->user_firstname ;
echo 'User last name: ' . $current_user->user_lastname ;
echo 'User display name: ' . $current_user->display_name ;
echo 'User ID: ' . $current_user->ID ;