Manual:Hooks/UserModifyCreateAccountEmail
Appearance
| UserModifyCreateAccountEmail | |
|---|---|
| Available from version 1.47.0 (Gerrit change 1299649) This allows overriding/changing of the email subject and body sent to users when their account is created for them by another user. | |
| Define function: | public static function onUserModifyCreateAccountEmail( User $user, User $performer, Message &$subject, Message &$body ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"UserModifyCreateAccountEmail": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserModifyCreateAccountEmail"
}
}
|
| Called from: | File(s): Auth/AbstractTemporaryPasswordPrimaryAuthenticationProvider.php |
| Interface: | UserModifyCreateAccountEmailHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserModifyCreateAccountEmail extensions.