WP_Session_Tokens::destroy()
Destroys the session with the given token.
Method of the class: WP_Session_Tokens{}
No Hooks.
Return
null
. Nothing (null).
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. |
WP_Session_Tokens::destroy() WP Session Tokens::destroy code WP 6.4.3
final public function destroy( $token ) { $verifier = $this->hash_token( $token ); $this->update_session( $verifier, null ); }