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