WP_Session_Tokens::get( string $token ): array|null

In this article

Retrieves a user’s session for the given token.

Parameters

$tokenstringrequired
Session token.

Return

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

Source

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

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.