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"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ConfirmEmailComplete'][] = 'MyExtensionHooks::onConfirmEmailComplete';
Called from:File(s): user/User.php
Function(s): confirmEmail

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]