Skip to content

Kirby 3.9.8

user.changeEmail:before

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

Parameters

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