Manual:Hooks/SpecialPageExecuteAfterPage

From mediawiki.org
Jump to navigation Jump to search
SpecialPageExecuteAfterPage
Available from version 1.6.0
Removed in version 1.14.0
called after executing a special page
Define function:
public static function onSpecialPageExecuteAfterPage( $specialPage, $par, $funct ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialPageExecuteAfterPage": "MyExtensionHooks::onSpecialPageExecuteAfterPage"
	}
}
Called from: File(s): SpecialPage.php
Interface: SpecialPageExecuteAfterPageHook.php

For more information about attaching hooks, see Manual:Hooks .

Details[edit]

  • $specialPage: SpecialPage object
  • $par: paramter passed to the special page (string)
  • $funct: function called to execute the special page