< 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"
	}
}
 | 
| 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
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
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.