WordPress at a glance
function is not described

WP_User_Meta_Session_Tokens::destroy_other_sessions() WP 4.0.0

Destroys all sessions for this user, except the single session with the given verifier.

This is a method of the class: WP_User_Meta_Session_Tokens

No Hooks.

Return

Null. Nothing.

Usage

$WP_User_Meta_Session_Tokens = new WP_User_Meta_Session_Tokens();
$var = $WP_User_Meta_Session_Tokens->destroy_other_sessions( $verifier );
$verifier(string) (required)
Verifier of the session to keep.

Changelog

Since 4.0.0 Introduced.

Code of WP User Meta Session Tokens::destroy other sessions: wp-includes/class-wp-user-meta-session-tokens.php WP 5.2.2

<?php
protected function destroy_other_sessions( $verifier ) {
	$session = $this->get_session( $verifier );
	$this->update_sessions( array( $verifier => $session ) );
}