Manual:Hooks/EditPageGetPreviewText

From MediaWiki.org
Jump to: navigation, search
EditPageGetPreviewText
Available from version 1.16.0
Allow modifying the wikitext that will be previewed

Define function:
public static function onEditPageGetPreviewText( $editPage, &$toparse ) { ... }

Attach hook:
$wgHooks['EditPageGetPreviewText'][] = 'MyExtensionHooks::onEditPageGetPreviewText';
Called from: EditPage.php

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


[edit] Details

  • $editPage: The EditPage object
  • &$toparse: wikitext that will be parsed
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox