WordPress at a glance
function is not described

WP_User_Meta_Session_Tokens::destroy_all_sessions() WP 4.0.0

Destroys all session tokens for the user.

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_all_sessions();

Changelog

Since 4.0.0 Introduced.

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

<?php
protected function destroy_all_sessions() {
	$this->update_sessions( array() );
}