Function: wp_get_all_sessions

wp_get_all_sessions( )

Retrieve a list of sessions for the current user.

Returns

array

Array of sessions.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.