Skip to content

Kirby 3.5.7.1

user.changeLanguage:before

$user, $language

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