WordPress at Your Fingertips
function is not described

WP_User_Meta_Session_Tokens::destroy_all_sessions() protected WP 4.0.0

Destroys all session tokens for the user.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->destroy_all_sessions();

Code of WP_User_Meta_Session_Tokens::destroy_all_sessions() WP 5.8.3

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