MyBB Community Forums

Full Version: where $mybb->user is created?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need to add a property to $mybb->user ,
in which file user 's data are read from database and written to this variable ?
thanks.
IIRC, ~/inc/class_session.php file initially defines $mybb->user [GitHub link]
thanks.
All fields from the mybb_users table are read and added to the $mybb->user array so if the user is logged in, it will already have that information.
yes, i need only to add new field into mybb_users table and it will be avaiable into the variable.