Jump to: navigation, search
This page is a translated version of the page Manual:$wgParserOutputHooks and the translation is 25% complete.

Other languages:
English • ‎日本語 • ‎polski
Extensions: $wgParserOutputHooks
Parser output hooks.
導入されたバージョン: 1.11.0
除去されたバージョン: 使用中
可能な値: 配列
既定値: array()
他の設定: アルファベット順 | 機能順


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 OutputPageParserOutputManual:Hooks/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 ) {