Open main menu

Manual:Hooks/ArticleEditUpdates

< Manual:Hooks
ArticleEditUpdates
Available from version 1.14.0
Executes when edit updates (mainly link tracking) are made after an article has been changed
Define function:
public static function onArticleEditUpdates( &$wikiPage, &$editInfo, $changed ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ArticleEditUpdates": "MyExtensionHooks::onArticleEditUpdates"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ArticleEditUpdates'][] = 'MyExtensionHooks::onArticleEditUpdates';
Called from:File(s): WikiPage.php

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

DetailsEdit

  • &$wikiPage: WikiPage object (was an Article object before MW 1.18)
  • &$editInfo: data holder that includes the parser output for the page being changed
  • $changed: flag indicating that page was changed (boolean)