$user_meta = get_userdata( $user_id );. 2. . 3. $user_roles = $user_meta->roles; // array with all the roles the user is part of.
確定! 回上一頁