Manual:Hooks/AbortEmailNotification
AbortEmailNotification | |
---|---|
Available from version 1.20.0 Can be used to cancel email notifications for an edit. | |
Define function: | public static function onAbortEmailNotification( $editor, $title, $rc ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"AbortEmailNotification": "MediaWiki\\Extension\\MyExtension\\Hooks::onAbortEmailNotification"
}
}
|
Called from: | File(s): changes/RecentChange.php |
Interface: | AbortEmailNotificationHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:AbortEmailNotification extensions.
Details
editReturn true to send email notification, false to cancel sending the notification.
- $editor: The User who made the change.
- $title: The Title of the page that was edited.
- $rc: The current RecentChange object. (1.24+)