Manual:Hooks/AbortEmailNotification

Category:MediaWiki hooks#AbortEmailNotification Category:Hooks added in MediaWiki 1.20.0#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.phpCategory:MediaWiki hooks included in RecentChange.php#AbortEmailNotification
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

Category:Hooks added in MediaWiki 1.20.0 Category:MediaWiki hooks Category:MediaWiki hooks included in RecentChange.php