Manual:Hooks/EmailUserAuthorizeSend
Appearance
EmailUserAuthorizeSend | |
---|---|
Available from version 1.41.0 (Gerrit change 922140) Called when checking whether a user is allowed to send emails | |
Define function: | public static function onEmailUserAuthorizeSend( MediaWiki\Permissions\Authority $sender, StatusValue $status ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EmailUserAuthorizeSend": "MediaWiki\\Extension\\MyExtension\\Hooks::onEmailUserAuthorizeSend"
}
}
|
Called from: | File(s): includes/mail/EmailUser.php |
Interface: | EmailUserAuthorizeSendHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EmailUserAuthorizeSend extensions.