WP_Session_Tokens::get()publicWP 4.0.0

Retrieves a user's session for the given token.

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

No Hooks.

Return

Array|null. The session, or null if it does not exist.

Usage

$WP_Session_Tokens = new WP_Session_Tokens();
$WP_Session_Tokens->get( $token );
$token(string) (required)
Session token.

Changelog

Since 4.0.0 Introduced.

Code of WP_Session_Tokens::get() WP 6.0.2

final public function get( $token ) {
	$verifier = $this->hash_token( $token );
	return $this->get_session( $verifier );
}