Manual:Hooks/RenameUserComplete

RenameUserComplete
Available from version 1.40.0
After a sucessful user rename
Define function:
public static function onRenameUserComplete( $uid, $oldName, $newName ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"RenameUserComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onRenameUserComplete"
	}
}
Called from: File(s): RenameUser/RenameuserSQL.php
Interface: RenameUserCompleteHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:RenameUserComplete extensions.

Details

edit
  • $uid: id of the user being renamed
  • $oldName: old name
  • $newName: new name
  NODES
HOME 1
languages 2
text 2
Users 1