WordPress at a glance
function is not described

WP_Session_Tokens::get_sessions() protected WP 4.0.0

Retrieves all sessions of the user.

{} It's a method of the class: WP_Session_Tokens{}

No Hooks.

Return

Array. Sessions of the user.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sessions();

Changelog

Since 4.0.0 Introduced.

Code of WP_Session_Tokens::get_sessions() WP 5.5.1

<?php
abstract protected function get_sessions();