Manual:Hooks/UserLogout
From MediaWiki.org
< Manual:Hooks(Redirected from Manual:MediaWiki hooks/UserLogout)
| UserLogout | |
|---|---|
| Available from version 1.4.0 Occurs when the software receives a request to log out |
|
*Define function: |
function fnMyHook(&$user) { ... }
|
*Attach hook: |
$wgHooks['UserLogout'][] = 'fnMyHook'; |
| Called from: | SpecialUserlogout.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserLogout extensions.
[edit] Details
- $user: the user object that is about to be logged out

