Manual:Hooks/PrefsEmailAudit
PrefsEmailAudit | |
---|---|
Available from version 1.11.0 called when user changes his email address | |
Define function: | public static function onPrefsEmailAudit( $user, $oldaddr, $newaddr ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"PrefsEmailAudit": "MediaWiki\\Extension\\MyExtension\\Hooks::onPrefsEmailAudit"
}
}
|
Called from: | File(s): SpecialChangeEmail.php |
Interface: | PrefsEmailAuditHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:PrefsEmailAudit extensions.
Details
edit- $user: User (object) changing his email address
- $oldaddr: old email address (string)
- $newaddr: new email address (string)
Note that the new email addess is not confirmed at this point.