Hi, I am new to Elgg and I was wondering if anyone can tell me how to start using Elgg API. Say, I would like to return the username. Can anyone give me a sample code for such a function. Including api declaration, etc. I am completely new to this framework and I after studying docs a bit, I am still not sure how to do this. Thanks.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
You must log in to post replies.You mean for the current logged in user?
$user = get_loggedin_user();
echo $user->username;