Manual:Hooks/ConfirmEmailComplete

From mediawiki.org
Jump to navigation Jump to search
ConfirmEmailComplete
Available from version 1.16.0
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": "MyExtensionHooks::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]