WP_Session_Tokens::is_still_valid( array $session ): bool

In this article

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

Parameters

$sessionarrayrequired
Session to check.

Return

bool Whether session is valid.

Source

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

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.