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]
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.