< Extension:Renameuser
| RenameUserComplete | |
|---|---|
| Available from version 1.11 After a sucessful user rename | |
| Define function: | public static function onRenameUserComplete( $uid, $oldName, $newName ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"RenameUserComplete": "MyExtensionHooks::onRenameUserComplete"
}
}
|
| Called from: | File(s): Renameuser extension |
| Interface: | RenameUserCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RenameUserComplete extensions.
Details
- $uid: id of the user being renamed
- $oldName: old name
- $newName: new name
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.