WordPress at a glance
function is not described

WP_User_Meta_Session_Tokens::update_sessions() protected WP 4.0.0

Updates the user's sessions in the usermeta table.

{} 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->update_sessions( $sessions );
$sessions(array) (required)
Sessions.

Changelog

Since 4.0.0 Introduced.

Code of WP_User_Meta_Session_Tokens::update_sessions() WP 5.7

<?php
protected function update_sessions( $sessions ) {
	if ( $sessions ) {
		update_user_meta( $this->user_id, 'session_tokens', $sessions );
	} else {
		delete_user_meta( $this->user_id, 'session_tokens' );
	}
}