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