[SOLVED] Current user of the PHP list plugin

I have a PHP button on the list, and I'd like to update a second log table when a user has clicked the PHP button on the list. As PHP list plugin cannot use placeholders, what is the way to find out the user id through PHP?
 
PHP:
$user_object = JFactory::getUser();
$user_group_array = $user_object->groups;
$userKeys = array_keys($user_group_array);
$userGroup = $user_group_array[$userKeys[0]];
$user_name = $user_object->name;
$user_username = $user_object->username;
$user_email = $user_object->email;
$user_id = $user_object->id;
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top