< Manual:Hooks 
 
      | SpecialPageBeforeExecute | |
|---|---|
| Available from version 1.20.0 Called before SpecialPage::execute(). | |
| Define function: | public static function onSpecialPageBeforeExecute( SpecialPage $special, $subPage ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"SpecialPageBeforeExecute": "MyExtensionHooks::onSpecialPageBeforeExecute"
	}
}
 | 
| Called from: | File(s): specials/SpecialPage.php | 
| Interface: | SpecialPageBeforeExecuteHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialPageBeforeExecute extensions.
Details
- $special: the SpecialPage object
- $subPage: the subpage string or null if no subpage was specified
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.