On this page
WP_Session_Tokens::update( string $token, array $session )
Updates the data for the session with the given token.
Parameters
$tokenstring Required-
Session token to update.
$sessionarray Required-
Session information.
Source
File: wp-includes/class-wp-session-tokens.php. View all references
final public function update( $token, $session ) {
$verifier = $this->hash_token( $token );
$this->update_session( $verifier, $session );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Session_Tokens::update_session() wp-includes/class-wp-session-tokens.php | Updates a session based on its verifier (token hash). |
| WP_Session_Tokens::hash_token() wp-includes/class-wp-session-tokens.php | Hashes the given session token for storage. |
Used By
| Used By | Description |
|---|---|
| WP_Session_Tokens::create() wp-includes/class-wp-session-tokens.php | Generates a session token and attaches session information to it. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_session_tokens/update