Manual:$wgParserOutputHooks

Category:MediaWiki configuration settings#ParserOutputHooksCategory:MediaWiki configuration settings introduced in version 1.11.0#ParserOutputHooksCategory:MediaWiki configuration settings deprecated in version 1.38.0#ParserOutputHooksCategory:MediaWiki configuration settings removed in version 1.41.0#ParserOutputHooksCategory:MediaWiki deprecated or obsolete features#ParserOutputHooksCategory:Extension variables#ParserOutputHooks
Extensions: $wgParserOutputHooks
Parser output hooks.
Introduced in version:1.11.0
Deprecated in version:1.38.0 (Gerrit change 760994; git #773801e4)
Removed in version:1.41.0 (Gerrit change 942499; git #d421ab57)
Allowed values:(array)
Default value:[]

Details

This is an associative array where the key is an extension-defined tag (typically the extension name), and the value is a PHP callback. These will be called as an OutputPageParserOutput hook, if the relevant tag has been registered with the parser output object.

Registration is done with

$pout->addOutputHook( $tag, $data );

The callback has the form:

function outputHook( $outputPage, $parserOutput, $data ) { 
  /*...*/
}
Category:Extension variables Category:MediaWiki configuration settings Category:MediaWiki configuration settings deprecated in version 1.38.0 Category:MediaWiki configuration settings introduced in version 1.11.0 Category:MediaWiki configuration settings removed in version 1.41.0 Category:MediaWiki deprecated or obsolete features