WP_User_Meta_Session_Tokens::update_sessions( array $sessions )

In this article

Updates the user’s sessions in the usermeta table.

Parameters

$sessionsarrayrequired
Sessions.

Source

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' );
	}
}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.