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