Manual:Hooks/ParserFirstCallInit
From MediaWiki.org
| ParserFirstCallInit | |
|---|---|
| Available from version 1.12.0 called when the parser initialises for the first time |
|
*Define function: |
function fnMyHook( &$parser ) { ... }
|
*Attach hook: |
$wgHooks['ParserFirstCallInit'][] = 'fnMyHook'; |
| Called from: | Parser.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ParserFirstCallInit extensions.
[edit] Details
- &$parser: Parser object being cleared
[edit] Examples
For examples on how this hook should be used, please see Manual:Tag Extensions.