< Manual:Hooks
| UserGetReservedNames | |
|---|---|
| Available from version 1.14.0 Allows to modify $wgReservedUsernames at run time. | |
| Define function: | public static function onUserGetReservedNames( &$reservedUsernames ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"UserGetReservedNames": "MyExtensionHooks::onUserGetReservedNames"
}
}
|
| Called from: | File(s): User.php |
| Interface: | UserGetReservedNamesHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserGetReservedNames extensions.
Details
- &$reservedUsernames: $wgReservedUsernames
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.