wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_all_sessions › WordPress Function

Since4.0.0
Deprecatedn/a
wp_get_all_sessions ( No parameters )
Returns:
  • (array) Array of sessions.
Defined at:
Codex:

Retrieves a list of sessions for the current user.



Source

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