Manual:Hooks/MagicWordwgVariableIDs

Category:MediaWiki hooks#MagicWordwgVariableIDs Category:Hooks added in MediaWiki 1.6.1#MagicWordwgVariableIDs Category:MediaWiki deprecated or obsolete features#MagicWordwgVariableIDs Category:Hooks deprecated in MediaWiki 1.35.0#MagicWordwgVariableIDs
MagicWordwgVariableIDs
Available from version 1.6.1
Tells MediaWiki that one or more magic word IDs should be treated as variables.
Define function:
public static function onMagicWordwgVariableIDs( &$aCustomVariableIds ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"MagicWordwgVariableIDs": "MediaWiki\\Extension\\MyExtension\\Hooks::onMagicWordwgVariableIDs"
	}
}
Called from: File(s): MagicWord.phpCategory:MediaWiki hooks included in MagicWord.php#MagicWordwgVariableIDs
Interface: MagicWordwgVariableIDsHook.php

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

Usage

This function is part of a collection of function hooks used to define custom variables. For an overview of this hook and how it fits into the overall process of defining and registering user defined variables, please see Manual:Variables.

See also

Category:Hooks added in MediaWiki 1.6.1 Category:Hooks deprecated in MediaWiki 1.35.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in MagicWord.php