createNewUser
The createNewUser hook is triggered when a new front end user registers on the website. It passes the ID of the new user and the data array as arguments and does not expect a return value.
Parameters
int
$userIdUnique ID of the user.
array
$userDataAll values which have been submitted on the registration form. Be aware that the user ID is not contained in this array (
$userData['id']is empty).\Contao\Module
$moduleThe front end module instance executing this hook.