WP_Session_Tokens::update() WordPress Method

The WP_Session_Tokens::update() method is used to update an existing session token. This is typically used when a user logs in or out of a site.

WP_Session_Tokens::update( string $token, array $session ) #

Updates the data for the session with the given token.


Parameters

$token

(string)(Required)Session token to update.

$session

(array)(Required)Session information.


Top ↑

Source

File: wp-includes/class-wp-session-tokens.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.