WC_Session_Handler::init_sessionprivateWC 1.0

Initialize the session from either the request or the cookie.

Method of the class: WC_Session_Handler{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->init_session();

WC_Session_Handler::init_session() code WC 10.3.3

private function init_session() {
	if ( ! $this->init_session_from_request() ) {
		$this->init_session_cookie();
	}
}