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"

For MediaWiki ≤1.25:

$wgHooks['SpecialPageExecuteBeforePage'][] = 'MyExtensionHooks::onSpecialPageExecuteBeforePage';
Called from:File(s): SpecialPage.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialPageExecuteBeforePage extensions.


  • $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 (??)