Reference

user.create:before

$input

Example

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