user.changeLanguage:after $newUser, $oldUser /site/config/config.php return [ 'hooks' => [ 'user.changeLanguage:after' => function ($newUser, $oldUser) { // your code goes here } ] ]