Manual:Hooks/ParserAfterStrip

From MediaWiki.org
Jump to: navigation, search
ParserAfterStrip
Available from version 1.5.0

Define function:
public static function onParserAfterStrip( &$parser, &$text, &$strip_state ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ParserAfterStrip": "MyExtensionHooks::onParserAfterStrip"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ParserAfterStrip'][] = 'MyExtensionHooks::onParserAfterStrip';
Called from: File(s): Parser.php

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

Please see Manual:Hooks/ParserBeforeStripManual:Hooks/ParserBeforeStrip for details on how to use this hook.

See also[edit]