MediaWiki  master
MediaWiki\Hook\AddNewAccountHook Interface Reference
Inheritance diagram for MediaWiki\Hook\AddNewAccountHook:

Public Member Functions

 onAddNewAccount ( $user, $byEmail)
 This hook is called after a user account is created. More...
 

Detailed Description

Deprecated:
since 1.27.

Use LocalUserCreated instead.

Definition at line 11 of file AddNewAccountHook.php.

Member Function Documentation

◆ onAddNewAccount()

MediaWiki\Hook\AddNewAccountHook::onAddNewAccount (   $user,
  $byEmail 
)

This hook is called after a user account is created.

Since
1.35
Parameters
User$userthe User object that was created. (Parameter added in 1.7)
bool$byEmailtrue when account was created "by email" (added in 1.12)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: