Manual:Hooks/UserLogout

From MediaWiki.org

Jump to: navigation, search
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: wfSpecialUserlogout()

*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

[edit] See also

Personal tools