Manual:Hooks/EditPageGetDiffText
From MediaWiki.org
![]() |
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.21. Please see EditPageGetDiffContent for an alternative way to use this feature. |
EditPageGetDiffText | |
---|---|
Available from version 1.16.0 Allow modifying the wikitext that will be used in "Show changes" |
|
Define function: |
public static function onEditPageGetDiffText( $editPage, &$newtext ) { ... } |
Attach hook: |
$wgHooks['EditPageGetDiffText'][] = 'MyExtensionHooks::onEditPageGetDiffText'; |
Called from: | File(s): EditPage.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:EditPageGetDiffText extensions.
Details[edit | edit source]
- $editPage: The EditPage object
- &$newtext: wikitext that will be used as "your version"