Jump to navigation Jump to search
Available from version 1.19.0 (r94259)
Removed in version 1.29.0
called when determining if a page is a wikitext or should be handled by seperate handler (via ArticleViewCustom)
Define function:
public static function onTitleIsWikitextPage( $title, &$result ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"TitleIsWikitextPage": "MyExtensionHooks::onTitleIsWikitextPage"

For MediaWiki ≤1.25:

$wgHooks['TitleIsWikitextPage'][] = 'MyExtensionHooks::onTitleIsWikitextPage';
Called from:File(s): Title.php

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