MyBB Community Forums

Full Version: Plugin Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been looking around on the site and through some other plugins, but I can't find anything on how to get the currently logged in users information in a plugin.

I was expecting to use a class like $user->input('uid') or something, and have an array returned with all the information about the current user in.

Does anyone know if this exists?

Thank you.
The $mybb->user array contains information on the current user. The UID can be retrieved from $mybb->user['uid']
Reference URL's