| InvalidateEmailComplete | |
|---|---|
| Available fromversion 1.16.0 Called after a user's email has been invalidated successfully. | |
| Define function: | publicstaticfunctiononInvalidateEmailComplete($user){...} |
| Attach hook: | Inextension.json:{"Hooks":{"InvalidateEmailComplete":"MediaWiki\\Extension\\MyExtension\\Hooks::onInvalidateEmailComplete"}} |
| Called from: | File(s):User.php |
| Interface: | InvalidateEmailCompleteHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:InvalidateEmailComplete extensions.
Called both when a user sets a new email address (so the old one becomes invalid) and when a user refuses the confirm that address (by clicking the cancel link in the confirmation email).
At the point this hook is called, the passed User object's email-related fields have been unset but the changes have not been saved to the database/cache yet.