user->data (method)

Purpose:

Provides quick access to a piece of info about a logged in user

Example:

user->data()->username

Data Type(s):

user->data()->field_in_users_table

Location:

users/classes/User.php

Details:

The logged in User's info is always readily available through user->data.
Generally the logged in user's info is stored in the $user variable so you
can echo a username with

<?php echo $user->data()->username;?>
username can be replaced with any column in the users table
including ones you add yourself.