Open main menu

Manual:Hooks/GetDoubleUnderscoreIDs

GetDoubleUnderscoreIDs
Available from version 1.21.0
Modifying the list of magic words
Define function:
public static function onGetDoubleUnderscoreIDs( &$mDoubleUnderscoreIDs ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"GetDoubleUnderscoreIDs": "MyExtensionHooks::onGetDoubleUnderscoreIDs"
	}
}

For MediaWiki ≤1.25:

$wgHooks['GetDoubleUnderscoreIDs'][] = 'MyExtensionHooks::onGetDoubleUnderscoreIDs';
Called from:File(s): MagicWord.php

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