MediaWiki  master
MediaWiki\User\Hook\UserSetEmailHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserSetEmailHook:

Public Member Functions

 onUserSetEmail ( $user, &$email)
 This hook is called when changing user email address. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserSetEmailHook.php.

Member Function Documentation

◆ onUserSetEmail()

MediaWiki\User\Hook\UserSetEmailHook::onUserSetEmail (   $user,
$email 
)

This hook is called when changing user email address.

Since
1.35
Parameters
User$userUser object
string&$emailnew email, change this to override new email address
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: