WP_User_Meta_Session_Tokens::destroy_all_sessions() WordPress Method
The WP_User_Meta_Session_Tokens::destroy_all_sessions() method is used to destroy all session tokens for the specified user. This is typically called when a user logs out of their account.
WP_User_Meta_Session_Tokens::destroy_all_sessions() #
Destroys all session tokens for the user.
Source
File: wp-includes/class-wp-user-meta-session-tokens.php
protected function destroy_all_sessions() { $this->update_sessions( array() ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |