WordPress at a glance
function is not described

WP_Session_Tokens::update_session() protected WP 4.0.0

Updates a session based on its verifier (token hash).

Omitting the second argument destroys the session.

{} It's a method of the class: WP_Session_Tokens{}

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->update_session( $verifier, $session );
$verifier(string) (required)
Verifier for the session to update.
Session. Omitting this argument destroys the session.


Since 4.0.0 Introduced.

Code of WP_Session_Tokens::update_session() WP 5.7.1

abstract protected function update_session( $verifier, $session = null );