Jump to: navigation, search
Available from version 1.27.0
Occurs whenever a request to move an article is completed, before the database transaction commits.
Define function:
public static function onTitleMoveCompleting( Title $oldTitle, Title $newTitle, User $user, $pageId, $redirId, $reason, Revision $revision ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"TitleMoveCompleting": "MyExtensionHooks::onTitleMoveCompleting"

For MediaWiki ≤1.25:

$wgHooks['TitleMoveCompleting'][] = 'MyExtensionHooks::onTitleMoveCompleting';
Called from: File(s): Title.php
Function(s): MovePage::move()

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


  • $oldTitle: Title before move
  • $newTitle: Title after move
  • $user: User who did the move
  • $pageId: Database ID of the moved page
  • $redirId: Database ID of the created redirect
  • $reason: Reason for the move
  • $revision: revision created by the move; added in git #9cc2f62b (version 1.27)

See also[edit]