WooCommerce::initialize_session()

Initialize the session class.


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/class-woocommerce.php

	public function initialize_session() {
		// Session class, handles session data for users - can be overwritten if custom handler is needed.
		$session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );
		if ( is_null( $this->session ) || ! $this->session instanceof $session_class ) {
			$this->session = new $session_class();
			$this->session->init();
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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