Manual:Hooks/PageMoveComplete

PageMoveComplete
Available from version 1.35.0 (Gerrit change 588128)
After an article has been moved, post commit
Define function:
public static function onPageMoveComplete( MediaWiki\Linker\LinkTarget $old, MediaWiki\Linker\LinkTarget $new, MediaWiki\User\UserIdentity $userIdentity, int $pageid, int $redirid, string $reason, MediaWiki\Revision\RevisionRecord $revision ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"PageMoveComplete": "MyExtensionHooks::onPageMoveComplete"
	}
}
Called from:File(s): MovePage.php
Interface:PageMoveCompleteHook.php

For more information about attaching hooks, see $1.
For examples of extensions using this hook, see Category:PageMoveComplete extensions.

See alsoEdit