wp_get_all_sessions(): array In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves a list of sessions for the current user. Return array Array of sessions. Source function wp_get_all_sessions() { $manager = WP_Session_Tokens::get_instance( get_current_user_id() ); return $manager->get_all(); } View all references View on Trac View on GitHub Related UsesDescriptionWP_Session_Tokens::get_instance()wp-includes/class-wp-session-tokens.phpRetrieves a session manager instance for a user. get_current_user_id()wp-includes/user.phpGets the current user’s ID. Changelog VersionDescription4.0.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.