WP_Session_Tokens::update()publicWP 4.0.0

Updates the data for the session with the given token.

Method of the class: WP_Session_Tokens{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Session_Tokens = new WP_Session_Tokens();
$WP_Session_Tokens->update( $token, $session );
$token(string) (required)
Session token to update.
$session(array) (required)
Session information.

Changelog

Since 4.0.0 Introduced.

WP_Session_Tokens::update() code WP 6.5.4

final public function update( $token, $session ) {
	$verifier = $this->hash_token( $token );
	$this->update_session( $verifier, $session );
}