Manual:Hooks/ConfirmEmailComplete

ConfirmEmailComplete
Available from version 1.16.0 (r38040, codereview)
Called after a user's email has been confirmed successfully
Define function:
public static function onConfirmEmailComplete( User $user ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ConfirmEmailComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onConfirmEmailComplete"
	}
}
Called from: File(s): user/User.php
Function(s): confirmEmail
Interface: ConfirmEmailCompleteHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ConfirmEmailComplete extensions.


Details

edit
  • $user: User (object) whose email is being confirmed

See also

edit