WordPress at a glance
function is not described

wp_get_all_sessions() WP 4.0.0

Retrieve a list of sessions for the current user.

No Hooks.

Return

Array. Array of sessions.

Usage

wp_get_all_sessions();

Code of wp get all sessions: wp-includes/user.php VER 5.0.3

<?php
function wp_get_all_sessions() {
	$manager = WP_Session_Tokens::get_instance( get_current_user_id() );
	return $manager->get_all();
}