do ID do usuário ao usuário do usuário WordPress
$user_meta = get_userdata( $user_id );
$user_roles = $user_meta->roles; // array with all the roles the user is part of.
Motionless Meerkat