Returns the user_id of logged user (in admin backend)

Syntax

$user_id = CFO_GetUserId();

Typical use: Displaying Debug only for a User
Go to System > Users and locate the user you want to show debug to.
Select desired user, then look at the URL and see user_id={number} use that “number” in the code below.

...
//
// Show Debug only for those user_id (Main Admin and Demo Admin in our demo store)
$user_id = CFO_GetUserId();
if($user_id==1 or $user_id==2) {
	CFO_ShowDebug();
}

Take a look at CFO_ShowDebug function.

You can visit this demo in our Demo Store