Manual:Hooks/SpecialPageExecuteAfterPage

From Linux Web Expert

SpecialPageExecuteAfterPage
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
<translate> Removed in <tvar name=1><translate> version <tvar </tvar></translate>
called after executing a special page
<translate> Define function:</translate>
public static function onSpecialPageExecuteAfterPage( $specialPage, $par, $funct ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialPageExecuteAfterPage": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPageExecuteAfterPage"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> SpecialPage.php
<translate> Interface:</translate> SpecialPageExecuteAfterPageHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>

Details

  • $specialPage: SpecialPage object
  • $par: paramter passed to the special page (string)
  • $funct: function called to execute the special page