WP_User_Meta_Session_Tokens::get_session( string $verifier )
Retrieve a session by its verifier (token hash).
Parameters
- $verifier
-
(Required) Verifier of the session to retrieve.
Return
(array|null) The session, or null if it does not exist
Source
File: wp-includes/class-wp-user-meta-session-tokens.php
protected function get_session( $verifier ) {
$sessions = $this->get_sessions();
if ( isset( $sessions[ $verifier ] ) ) {
return $sessions[ $verifier ];
}
return null;
}
Changelog
Version | Description |
---|---|
WP-4.0.0 | Introduced. |