Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/InvalidateEmailComplete

From mediawiki.org
<Manual:Hooks
InvalidateEmailComplete
Available fromversion 1.16.0
Called after a user's email has been invalidated successfully.
Define function:
publicstaticfunctiononInvalidateEmailComplete($user){...}
Attach hook:Inextension.json:
{"Hooks":{"InvalidateEmailComplete":"MediaWiki\\Extension\\MyExtension\\Hooks::onInvalidateEmailComplete"}}
Called from:File(s):User.php
Interface:InvalidateEmailCompleteHook.php

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


Details

[edit]
  • $user: user (object) whose email is being invalidated

Called both when a user sets a new email address (so the old one becomes invalid) and when a user refuses the confirm that address (by clicking the cancel link in the confirmation email).

At the point this hook is called, the passed User object's email-related fields have been unset but the changes have not been saved to the database/cache yet.

See also

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

[8]ページ先頭

©2009-2025 Movatter.jp