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

/**
 * Validates the given session token for authenticity and validity.
 *
 * Checks that the given token is present and hasn't expired.

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

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