Skip to content

Kirby 3.6.6

user.changeName:before

/site/config/config.php
return [
    'hooks' => [
        'user.changeName:before' => function (Kirby\Cms\User $user, string $name) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$user Kirby\Cms\User
$name string