Manual:Hooks/SpecialPageAfterExecute

From Linux Web Expert

SpecialPageAfterExecute
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called after SpecialPage::execute().
<translate> Define function:</translate>
public static function onSpecialPageAfterExecute( $special, $subPage ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialPageAfterExecute": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPageAfterExecute"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> SpecialPage.php
<translate> Interface:</translate> SpecialPageAfterExecuteHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialPageAfterExecute extensions</tvar>.</translate>


Details

  • $special: the SpecialPage object.
  • $subPage: the subpage string or null if no subpage was specified.