Manual:Hooks/UserLogoutComplete
From Linux Web Expert
UserLogoutComplete | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Occurs after a user has successfully logged out | |
<translate> Define function:</translate> | public static function onUserLogoutComplete( &$user, &$inject_html, $old_name ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"UserLogoutComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserLogoutComplete"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> specials/SpecialUserLogout.php |
<translate> Interface:</translate> | UserLogoutCompleteHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:UserLogoutComplete extensions</tvar>.</translate>
Details
- $user: the user object after logout (won't have name, ID, etc.)
- $inject_html: From 1.13, any HTML to inject after the logout success message.
- $old_name: From 1.13, (r35410) The text of the username that just logged out.