Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/RenameUserComplete

From mediawiki.org
<Manual:Hooks
RenameUserComplete
Available fromversion 1.40.0
After a sucessful user rename
Define function:
publicstaticfunctiononRenameUserComplete($uid,$oldName,$newName){...}
Attach hook:Inextension.json:
{"Hooks":{"RenameUserComplete":"MediaWiki\\Extension\\MyExtension\\Hooks::onRenameUserComplete"}}
Called from:File(s):RenameUser/RenameuserSQL.php
Interface:RenameUserCompleteHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:RenameUserComplete extensions.

Details

[edit]
  • $uid: id of the user being renamed
  • $oldName: old name
  • $newName: new name
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/RenameUserComplete&oldid=6296263"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp