MediaWiki  master
MediaWiki\Hook\AddNewAccountHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "AddNewAccount" to register handlers implementing this interface.

Deprecated:
since 1.27. Use LocalUserCreated instead.

Definition at line 14 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: