Jump to content

Manual:Hooks/SendWatchlistEmailNotification

From mediawiki.org
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSendWatchlistEmailNotification"
	}
}
Called from: File(s): UserMailer.php
Interface: SendWatchlistEmailNotificationHook.php

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


Details

[edit]

Return true to send watchlist email notification.

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

See also

[edit]