WC_Legacy_Cart::init()publicWC 1.0

Deprecated from version 3.2.0 Session is loaded via hooks rather than directly.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Init.

Method of the class: WC_Legacy_Cart{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Legacy_Cart = new WC_Legacy_Cart();
$WC_Legacy_Cart->init();

Changelog

Deprecated since 3.2.0 Session is loaded via hooks rather than directly.

WC_Legacy_Cart::init() code WC 8.7.0

public function init() {
	wc_deprecated_function( 'WC_Cart::init', '3.2', '' );
	$this->get_cart_from_session();
}