Manual:Hooks/SpecialPageExecuteAfterPage
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.14.0</tvar>.</translate> <translate> Please see <tvar name=page>SpecialPageAfterExecute</tvar> for an alternative way to use this feature.</translate> |
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