Automattic\WooCommerce\StoreApi

SessionHandler::has_sessionpublicWC 1.0

Return true if the current user has an active session.

Method of the class: SessionHandler{}

No Hooks.

Returns

true|false.

Usage

$SessionHandler = new SessionHandler();
$SessionHandler->has_session();

SessionHandler::has_session() code WC 10.7.0

public function has_session() {
	return ! empty( $this->_customer_id );
}