Manual:Hooks/SpecialPageExecuteBeforePage
Jump to navigation
Jump to search
![]() | This feature was removed from MediaWiki core in version 1.14.0. Please see SpecialPageBeforeExecute for an alternative way to use this feature. |
SpecialPageExecuteBeforePage | |
---|---|
Available from version 1.6.0 Removed in version 1.14.0 Called before setting the page text of the special page |
|
Define function: |
public static function onSpecialPageExecuteBeforePage( $specialpage, $parameters, $function ) { ... }
|
Attach hook: |
In extension.json: {
"Hooks": {
"SpecialPageExecuteBeforePage": "MyExtensionHooks::onSpecialPageExecuteBeforePage"
}
}
|
Called from: | File(s): SpecialPage.php |
Interface: | SpecialPageExecuteBeforePageHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialPageExecuteBeforePage extensions.
Details[edit]
- $specialpage: The SpecialPage being executed
- $parameters: Any parameter passed to the page (i.e. /wiki/index.php/SpecialAllpages/Foo. Foo is the parameter)
- $function: The function called to execute the special page (??)