Available from versionĀ ???
Called on Special:Renameuser before a user is renamed. Will show the given warnings to the user and ask for a confirmation.
Define function:
public static function onRenameUserWarning( $oun, $nun, &$warnings ) { ... }
Attach hook:
$wgHooks['RenameUserWarning'][] = 'MyExtensionHooks::onRenameUserWarning';
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:RenameUserWarning extensions.


  • $oun: The old username
  • $nun: The new username
  • &$warnings: Array with message key(s) or message key(s) and parameter(s) for the warnings to be shown