< Manual:Hooks
| This feature was removed completely in version 1.19.0. Please see Manual:Magic words for an alternative way to use this feature. |
| MagicWordMagicWords | |
|---|---|
| Available from version 1.6.0 Removed in version 1.19.0 Allows extensions to define new magic words. | |
| Define function: | public static function onMagicWordMagicWords( &$magicWords ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"MagicWordMagicWords": "MyExtensionHooks::onMagicWordMagicWords"
}
}
|
| Called from: | File(s): MagicWord.php |
| Interface: | MagicWordMagicWordsHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MagicWordMagicWords extensions.
Details
&$magicWords: An array of magic words.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.