Jump to content

Manual:Hooks/ArticleMergeComplete

From mediawiki.org
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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]