Extension:Renameuser/Hooks/RenameUserComplete

From MediaWiki.org
Jump to navigation Jump to search
RenameUserComplete
Available from version ???
Called after a user was renamed
Define function:
public static function onRenameUserComplete( $uid, $old, $new ) { ... }
Attach hook:
$wgHooks['RenameUserComplete'][] = 'MyExtensionHooks::onRenameUserComplete';
Called from:File(s): Renameuser / includes/RenameuserSQL.php
Function(s): rename

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

Details[edit]

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