int $user_id )
Fires after a user is logged out.
ID of the user that was logged out.
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.
View all references
do_action( 'wp_logout', $user_id );
For example, you could use it to delete a transient stored while user is logged in: