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