Obtenha o tipo de usuário wp php


    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    $user_roles = implode(', ', $user_info->roles);
    return $user_roles;
Andrew Lautenbach