< Manual:Hooks
| ParserAfterParse | |
|---|---|
| Available from version 1.20.0 Called from Parser::parse() just after the call to Parser::internalParse() returns. | |
| Define function: | public static function onParserAfterParse( Parser $parser, &$text, StripState $stripState ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ParserAfterParse": "MyExtensionHooks::onParserAfterParse"
}
}
|
| Called from: | File(s): parser/Parser.php |
| Interface: | ParserAfterParseHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserAfterParse extensions.
Details
- $parser: parser object
- &$text: text being parsed
- $stripState: stripState used (object)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.