Open main menu

Manual:Hooks/ArticleEditUpdateNewTalk

ArticleEditUpdateNewTalk
Available from version 1.5.7 (r13012)
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": "MyExtensionHooks::onArticleEditUpdateNewTalk"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ArticleEditUpdateNewTalk'][] = 'MyExtensionHooks::onArticleEditUpdateNewTalk';
Called from:File(s): Storage/DerivedPageDataUpdater.php
Function(s): doUpdates

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

DetailsEdit

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

See alsoEdit