Accessing user data
If you are trying to access the current user's info on the server-side (in PHP), you can directly access the object. For example,
echo $loggedInUser->user_id; echo $loggedInUser->email;
loadCurrentUser(), that will load information for the currently logged-in user. It can be found in
js/userfrosting.js. This function returns a JSON object containing the user fields.