WC_Session_Handler::has_session()
Return true if the current user has an active session, i.e. a cookie to retrieve values.
Method of the class: WC_Session_Handler{}
No Hooks.
Return
true|false
.
Usage
$WC_Session_Handler = new WC_Session_Handler(); $WC_Session_Handler->has_session();
WC_Session_Handler::has_session() WC Session Handler::has session code WC 9.6.0
public function has_session() { return isset( $_COOKIE[ $this->_cookie ] ) || $this->_has_cookie || is_user_logged_in(); // @codingStandardsIgnoreLine. }