Manual:Hooks/ArticleEditUpdateNewTalk

ArticleEditUpdateNewTalk
Available from version 1.5.7 (r13012, codereview)
Before updating user_newtalk when a user talk page was changed.
Define function:
public static function onArticleEditUpdateNewTalk( WikiPage &$wikiPage, User $recipient ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleEditUpdateNewTalk": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleEditUpdateNewTalk"
	}
}
Called from: File(s): Storage/DerivedPageDataUpdater.php
Function(s): doUpdates
Interface: ArticleEditUpdateNewTalkHook.php

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


Details

edit
  • &$wikiPage: WikiPage (object) of the user talk page
  • $recipient: User (object) who's talk page was edited

See also

edit