wp_destroy_current_session() – Remove the current session token from the database.

You appear to be a bot. Output may be restricted

Description

Removes the current session token from the database.

Usage

wp_destroy_current_session();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/user.php
Lines:

1 to 7 of 7
function wp_destroy_current_session() {
  $token = wp_get_session_token();
  if ( $token ) {
    $manager = WP_Session_Tokens::WP_Session_Tokens::get_instance( get_current_user_id() );
    $manager->destroy( $token );
  }
}
 

 View on GitHub View on Trac