Manual:Hooks/SpecialPageAfterExecute

Category:MediaWiki hooks#SpecialPageAfterExecute Category:Hooks added in MediaWiki 1.20.0#SpecialPageAfterExecute
SpecialPageAfterExecute
Available from version 1.20.0
Called after SpecialPage::execute().
Define function:
public static function onSpecialPageAfterExecute( $special, $subPage ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialPageAfterExecute": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPageAfterExecute"
	}
}
Called from: File(s): SpecialPage.phpCategory:MediaWiki hooks included in SpecialPage.php#SpecialPageAfterExecute
Interface: SpecialPageAfterExecuteHook.php

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

Details

  • $special: the SpecialPage object.
  • $subPage: the subpage string or null if no subpage was specified.
Category:Hooks added in MediaWiki 1.20.0 Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialPage.php