< Manual:Hooks
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": "MyExtensionHooks::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

Return 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+)

See also

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.