Open main menu


Available from version 1.11
Allow other extensions to abort a user rename
Define function:
public static function onRenameUserAbort( $uid, $oldName, $newName ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"RenameUserAbort": "MyExtensionHooks::onRenameUserAbort"

For MediaWiki ≤1.25:

$wgHooks['RenameUserAbort'][] = 'MyExtensionHooks::onRenameUserAbort';
Called from:File(s): Renameuser extension

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


  • $uid: id of the user being renamed
  • $oldName: old name
  • $newName: new name