| RenameUserWarning | |
|---|---|
| Available fromversion 1.40.0 Get warnings when renaming an user | |
| Define function: | publicstaticfunctiononRenameUserWarning($oldName,$newName,&$warnings){...} |
| Attach hook: | Inextension.json:{"Hooks":{"RenameUserWarning":"MediaWiki\\Extension\\MyExtension\\Hooks::onRenameUserWarning"}} |
| Called from: | File(s):specials/SpecialRenameUser.php Function(s):execute |
| Interface: | RenameUserWarningHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:RenameUserWarning extensions.