Manual:Hooks/UserSetEmailAuthenticationTimestamp

From mediawiki.org
Jump to navigation Jump to search
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": "MyExtensionHooks::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

See also[edit]