< Manual:Hooks
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. Please see GetMagicVariableIDs for an alternative way to use this feature. |
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": "MyExtensionHooks::onMagicWordwgVariableIDs"
}
}
|
Called from: | File(s): MagicWord.php |
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
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.