Used By
Used By | Description |
---|---|
wp-includes/pluggable.php: wp_logout() | Log the current user out. |
Fires after a user is logged out.
(int) ID of the user that was logged out.
The wp_logout
action hook is triggered when a user logs out using the wp_logout() function. The action is executed after the wp_clear_auth_cookie() function call.
Version | Description |
---|---|
5.5.0 | Added the $user_id parameter. |
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_logout