Announcement

Collapse
No announcement yet.

Get current user ID in a PHP hook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get current user ID in a PHP hook

    Hello,

    how can I get the current user's ID in a PHP hook?

  • #2
    Hello, example for getting user ID in PHP is in controller in User.php
    $userId = $this->getUser()->id

    Comment

    Working...
    X