Manual:Hooks/UserSetEmail
From MediaWiki.org
| UserSetEmail | |
|---|---|
| Available from version 1.13.0 Called when changing user email address. |
|
*Define function: |
function fnMyHook( User $user, &$email ) { ... }
|
*Attach hook: |
$wgHooks['UserSetEmail'][] = 'MyExtensionHooks::someExample'; |
| Called from: | User.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserSetEmail extensions.
[edit] Details
- $user: User object
- &$email: new email, change this to override new email address