Last updated not available | Page history | Improve this page | Report an issue
Returns the current user name, for the current or specified context.
API Doc: modX::getLoginUserName()
string getLoginUserName ([string $context = ''])
Grab the user's username in the current Context.
$username = $modx->getLoginUserName();