modX.getLoginUserID

Skip to end of metadata
Go to start of metadata


modX::getLoginUserID

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

Syntax

API Doc: http://api.modxcms.com/modx/modX.html#getLoginUserID

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

Example

Get the current login user ID for the 'sports' context.

$id = $modx->getLoginUserID('sports');

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.