WP_Session_Tokens::get_all()publicWP 4.0.0

Retrieves all sessions for a user.

Method of the class: WP_Session_Tokens{}

No Hooks.

Return

Array. Sessions for a user.

Usage

$WP_Session_Tokens = new WP_Session_Tokens();
$WP_Session_Tokens->get_all();

Changelog

Since 4.0.0 Introduced.

WP_Session_Tokens::get_all() code WP 6.5.4

final public function get_all() {
	return array_values( $this->get_sessions() );
}