Manual:Hooks/GetDoubleUnderscoreIDs

From mediawiki.org
Jump to navigation Jump to search
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"
	}
}
Called from:File(s): MagicWord.php
Interface:GetDoubleUnderscoreIDsHook.php

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