Skip to content

Kirby 3.6.6

user.changeLanguage:after

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

Parameters

Parameter Type
$newUser Kirby\Cms\User
$oldUser Kirby\Cms\User