WordPress at a glance
function is not described

WP_Session_Tokens::destroy() public WP 4.0.0

Destroys the session with the given token.

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

No Hooks.

Return

Null. Nothing.

Usage

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

Changelog

Since 4.0.0 Introduced.

Code of WP_Session_Tokens::destroy() WP 5.5.1

<?php
final public function destroy( $token ) {
	$verifier = $this->hash_token( $token );
	$this->update_session( $verifier, null );
}