Manual:Hooks/AddNewAccount

Details

 * $user: the User object that was created. (Parameter added in 1.7)
 * $byEmail: true when account was created "by email" (added in 1.12)

This does not include accounts auto-created by authentication extensions like CentralAuth. For that, see.

Values
Inside a function called by the hook, you can grab user variables such as:


 * User's name: $user->mName
 * User's real name: $user->mRealName
 * User's email address: $user->mEmail

Deprecated
From MediaWiki 1.27 on, the hook is deprecated and superseded by, as part of the changes that introduced. Logic that interacts with form fields or other request data should be moved into a provider.