WordPress at a glance
function is not described

WP_Session_Tokens::is_still_valid() protected WP 4.0.0

Determines whether a session is still valid, based on its expiration timestamp.

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

No Hooks.


true|false. Whether session is valid.


// protected - for code of main (parent) or child class
$result = $this->is_still_valid( $session );
$session(array) (required)
Session to check.


Since 4.0.0 Introduced.

Code of WP_Session_Tokens::is_still_valid() WP 5.7.1

final protected function is_still_valid( $session ) {
	return $session['expiration'] >= time();