Retrieve Ultimate Member user profile given a WordPress user ID

You can fetch the Ultimate Member user information using um_fetch_user() function.

// Get the user ID
$user_id = 4;

// Fetch user data for the current profile
um_fetch_user($user_id);

// Retrieve data of any field. example field "band"
$field_data= um_user('band');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)