WC_Legacy_Cart::init
Deprecated since 3.2.0 Session is loaded via hooks rather than directly.. It is no longer supported and may 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.
Returns
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() WC Legacy Cart::init code WC 10.6.2
public function init() {
wc_deprecated_function( 'WC_Cart::init', '3.2', '' );
$this->get_cart_from_session();
}