Reputation: 15158
I'm creating a moodle local plugin and I need to display the current user's profile page as part of my page and add my data after that.
is there any API that give me the profile page (with all additional fields) so I will be able to show it in my page?
Upvotes: 0
Views: 118
Reputation: 442
You can use global variable $USER. You will find all the records of current logged in user in $USER and display according to your requirement.
Upvotes: 1