WP_Session_Tokens::verify()
Validates the given session token for authenticity and validity.
Checks that the given token is present and hasn't expired.
Метод класса: WP_Session_Tokens{}
Хуков нет.
Возвращает
true|false
. Whether the token is valid for the user.
Использование
$WP_Session_Tokens = new WP_Session_Tokens(); $WP_Session_Tokens->verify( $token );
- $token(строка) (обязательный)
- Token to verify.
Список изменений
С версии 4.0.0 | Введена. |
Код WP_Session_Tokens::verify() WP Session Tokens::verify WP 6.1.1
final public function verify( $token ) { $verifier = $this->hash_token( $token ); return (bool) $this->get_session( $verifier ); }