From mediawiki.org
Jump to navigation Jump to search
Available from version ???
Allows the renaming to be aborted
Define function:
public static function onRenameUserAbort( $uid, $oldusername, $newusername ) { ... }
Attach hook:
$wgHooks['RenameUserAbort'][] = 'MyExtensionHooks::onRenameUserAbort';
Called from:File(s): Renameuser / includes/SpecialRenameuser.php
Function(s): execute

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


  • $uid: The user ID
  • $oldusername: The old username
  • $newusername: The new username