Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/UserSetEmail

From mediawiki.org
<Manual:Hooks
UserSetEmail
Available fromversion 1.13.0
Called when changing user email address.
Define function:
publicstaticfunctiononUserSetEmail(User$user,&$email){...}
Attach hook:Inextension.json:
{"Hooks":{"UserSetEmail":"MediaWiki\\Extension\\MyExtension\\Hooks::onUserSetEmail"}}
Called from:File(s):User.php
Interface:UserSetEmailHook.php

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

Details

[edit]
  • $user: User object
  • &$email: new email, change this to override new email address

See also

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/UserSetEmail&oldid=4431918"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp