Manual:Hooks/ArticleMergeComplete

From MediaWiki.org
Jump to: navigation, search
ArticleMergeComplete
Available from version 1.12.0
after merging to article using Special:Mergehistory
Define function:
public static function onArticleMergeComplete( $targetTitle, $destTitle ) { ... }
Attach hook:
$wgHooks['ArticleMergeComplete'][] = 'MyExtensionHooks::onArticleMergeComplete';
Called from: File(s): SpecialMergeHistory.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]