Summery Summery
Determines whether a session is still valid, based on its expiration timestamp.
Syntax Syntax
Parameters Parameters
- $session
-
(Required) Session to check.
Return Return
(bool) Whether session is valid.
Source Source
File: wp-includes/class-wp-session-tokens.php
final protected function is_still_valid( $session ) { return $session['expiration'] >= time(); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |