Open main menu

Manual:Hooks/SendWatchlistEmailNotification

< Manual:Hooks
SendWatchlistEmailNotification
Available from version 1.23.0
Can be used to cancel watchlist email notifications (enotifwatchlist) for an edit.
Define function:
public static function onSendWatchlistEmailNotification( $watchingUser, $title, $this ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SendWatchlistEmailNotification": "MyExtensionHooks::onSendWatchlistEmailNotification"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SendWatchlistEmailNotification'][] = 'MyExtensionHooks::onSendWatchlistEmailNotification';
Called from:File(s): UserMailer.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SendWatchlistEmailNotification extensions.

DetailsEdit

Return true to send watchlist email notification.

  • $targetUser: the user whom to send watchlist email notification
  • $title: the page title
  • $this: EmailNotification object

See alsoEdit