Jump to main content Jump to doc navigation

modX::getLoginUserName

Returns the current user name, for the current or specified context.

Syntax

API Doc: modX::getLoginUserName()

string getLoginUserName ([string $context = ''])

Example

Grab the user's username in the current Context.

$username = $modx->getLoginUserName();

See Also