Jump to: navigation, search
Available from version 1.12.0
called when the parser initializes for the first time
Define function:
public static function onParserFirstCallInit( Parser &$parser ) { ... }
Attach hook:
$wgHooks['ParserFirstCallInit'][] = 'MyExtensionHooks::onParserFirstCallInit';
Called from: File(s): Parser.php

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

Details[edit | edit source]

  • &$parser: Parser object being cleared

Examples[edit | edit source]

For examples on how this hook should be used, please see Manual:Tag extensions.