Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
Returns the current user ID, for the current or specified context.
API Doc: modX::getLoginUserID()
string getLoginUserID ([string $context = ''])
Get the current login user ID for the 'sports' context.
$id = $modx->getLoginUserID('sports');