Automattic\WooCommerce\StoreApi\Utilities

CartController::load_cart()publicWC 1.0

Makes the cart and sessions available to a route by loading them from core.

Method of the class: CartController{}

No Hooks.

Return

null. Nothing (null).

Usage

$CartController = new CartController();
$CartController->load_cart();

CartController::load_cart() code WC 8.7.0

public function load_cart() {
	if ( ! did_action( 'woocommerce_load_cart_from_session' ) && function_exists( 'wc_load_cart' ) ) {
		wc_load_cart();
	}
}