Manual:Hooks/UserLogoutComplete
From MediaWiki.org
| UserLogoutComplete | |
|---|---|
| Available from version 1.4.0 Occurs after a user has successfully logged out |
|
*Define function: |
function fnMyHook(&$user, &$inject_html) { ... }
|
*Attach hook: |
$wgHooks['UserLogoutComplete'][] = 'fnMyHook'; |
| Called from: | SpecialUserlogout.php: wfSpecialUserlogout() |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserLogoutComplete extensions.
[edit] Details
- $user: the user object after logout (won't have name, ID, etc.)
- $inject_html: From 1.13, any HTML to inject after the login success message.

