Available from version 1.35.0 (Gerrit change 589823)
Occurs after an article rollback is completed
Define function:
public static function onRollbackComplete( WikiPage $wikiPage, MediaWiki\User\UserIdentity $user, MediaWiki\Revision\RevisionRecord $revision, MediaWiki\Revision\RevisionRecord $current ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"RollbackComplete": "MyExtensionHooks::onRollbackComplete"
Called from:File(s): page/WikiPage.php

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


  • $wikiPage: the WikiPage that was edited
  • $user: UserIdentity for the user who did the rollback
  • $revision: RevisionRecord for the revision the page was reverted back to
  • $current: RevisionRecord for the reverted revision