Manual:Hooks/SpecialMovepageAfterMove
Appearance
From mediawiki.org
| SpecialMovepageAfterMove | |
|---|---|
| Available from version 1.6.0 Called after moving page. | |
| Define function: | public static function onSpecialMovepageAfterMove( &$movePage, &$oldTitle, &$newTitle ) { ... } |
| Attach hook: | In extension.json:
{ "Hooks":{ "SpecialMovepageAfterMove":"MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialMovepageAfterMove" } } |
| Called from: | File(s): specials/SpecialMovepage.php |
| Interface: | SpecialMovepageAfterMoveHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialMovepageAfterMove extensions.
Details
[edit ]This hook may be used to execute additional functions after a page has been moved.
Arguments
[edit ]- &$movePage: MediaWiki\Specials\SpecialMovePage
- &$oldTitle: Title object of the old article (moved from)
- &$newTitle: Title object of the new article (moved to)