Get user logged info. // Pega informações do usuário logado
/* Get user info. */
global $current_user, $wp_roles;
//get_currentuserinfo(); //deprecated since 3.1
$post_id = $_GET['post_id'];
$user_id = get_current_user_id();
$current_user = wp_get_current_user();
$avatarArr = get_field('avatar', 'user_'. $user_id ); //Using ACF
$avatarTbn = $avatarArr['sizes']['thumbnail'];
$user_email = $current_user->user_email;
$user_firstname = $current_user->user_firstname;
$display_name = $current_user->display_name;