| EditPageGetPreviewContent | |
|---|---|
| Available fromversion 1.21.0 Allow modifying the wikitext that will be previewed. Note that it is preferable to implement previews for different data types using the ContentHandler facility. | |
| Define function: | publicstaticfunctiononEditPageGetPreviewContent($editPage,&$content){...} |
| Attach hook: | Inextension.json:{"Hooks":{"EditPageGetPreviewContent":"MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageGetPreviewContent"}} |
| Called from: | File(s):EditPage.php |
| Interface: | EditPageGetPreviewContentHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:EditPageGetPreviewContent extensions.