Manual:Hooks/UserSetEmailAuthenticationTimestamp
Appearance
UserSetEmailAuthenticationTimestamp | |
---|---|
Available from version 1.13.0 Called when setting the timestamp of email authentication. | |
Define function: | public static function onUserSetEmailAuthenticationTimestamp( User $user, &$timestamp ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserSetEmailAuthenticationTimestamp": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserSetEmailAuthenticationTimestamp"
}
}
|
Called from: | File(s): user/User.php |
Interface: | UserSetEmailAuthenticationTimestampHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UserSetEmailAuthenticationTimestamp extensions.
Details
[edit]- $user: User object
- &$timestamp: new timestamp, change this to override local email authentication timestamp