Manual:Hooks/UserGetEmailAuthenticationTimestamp

From Linux Web Expert

UserGetEmailAuthenticationTimestamp
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called when getting the timestamp of email authentification.
<translate> Define function:</translate>
public static function onUserGetEmailAuthenticationTimestamp( $user, &$timestamp ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"UserGetEmailAuthenticationTimestamp": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserGetEmailAuthenticationTimestamp"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> User.php
<translate> Interface:</translate> UserGetEmailAuthenticationTimestampHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:UserGetEmailAuthenticationTimestamp extensions</tvar>.</translate>

Details

  • $user: User object
  • &$timestamp: timestamp, change this to override local email authentification timestamp

See also