Manual:Hooks/ArticleMergeComplete

From mediawiki.org
Jump to navigation Jump to search
ArticleMergeComplete
Available from version 1.12.0
Occurs after merging to article using Special:Mergehistory
Define function:
public static function onArticleMergeComplete( $targetTitle, $destTitle ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ArticleMergeComplete": "MyExtensionHooks::onArticleMergeComplete"
	}
}
Called from:File(s): MergeHistory.php
Interface:ArticleMergeCompleteHook.php

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

Details[edit]

  • $targetTitle: target title (Title object)
  • $destTitle: destination title (Title object)

See also[edit]