WP_Session_Tokens::get_sessions() WordPress Method
The WP_Session_Tokens::get_sessions() method is used to get all active sessions for a user. This is useful for managing and invalidating user sessions.
WP_Session_Tokens::get_sessions() #
Retrieves all sessions of the user.
Return
(array) Sessions of the user.
Source
File: wp-includes/class-wp-session-tokens.php
abstract protected function get_sessions();
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |