Manual:Hooks/OutputPageParserOutput

From MediaWiki.org
Jump to: navigation, search
OutputPageParserOutput
Available from version 1.6.0
Called after parse, before the HTML is added to the output
Define function:
public static function onOutputPageParserOutput( OutputPage &$out, ParserOutput $parseroutput ) { ... }
Attach hook:
$wgHooks['OutputPageParserOutput'][] = 'MyExtensionHooks::onOutputPageParserOutput';
Called from: File(s): OutputPage.php

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

Details[edit]

  • $out: the OutputPage (object) to which wikitext is added
  • $parseroutput: - a ParserOutput object.