Jump to navigation Jump to search

Other languages:
English • ‎dansk • ‎العربية
Available from version 1.12.0
Executes after an article rollback is complete
Define function:
public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"ArticleRollbackComplete": "MyExtensionHooks::onArticleRollbackComplete"

For MediaWiki ≤1.25:

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

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


  • $article: the article that was edited. WikiPage in MW >= 1.18, Article in 1.17.x and earlier.
  • $user: the user who did the rollback
  • $revision: the revision the page was reverted back to
  • $current: the Revision object of the top edit that was reverted.