Manual:Hooks/SendWatchlistEmailNotification
From Linux Web Expert
SendWatchlistEmailNotification | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Can be used to cancel watchlist email notifications (enotifwatchlist) for an edit. | |
<translate> Define function:</translate> | public static function onSendWatchlistEmailNotification( $watchingUser, $title, $this ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SendWatchlistEmailNotification": "MediaWiki\\Extension\\MyExtension\\Hooks::onSendWatchlistEmailNotification"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> UserMailer.php |
<translate> Interface:</translate> | SendWatchlistEmailNotificationHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SendWatchlistEmailNotification extensions</tvar>.</translate>
Details
Return true to send watchlist email notification.
- $targetUser: the user whom to send watchlist email notification
- $title: the page title
- $this: EmailNotification object