Automattic\WooCommerce\StoreApi\Routes\V1\Agentic

AgenticCheckoutSession::get_cartpublicWC 1.0

Gets the cart instance.

Method of the class: AgenticCheckoutSession{}

No Hooks.

Returns

WC_Cart. The WooCommerce cart instance.

Usage

$AgenticCheckoutSession = new AgenticCheckoutSession();
$AgenticCheckoutSession->get_cart(): WC_Cart;

AgenticCheckoutSession::get_cart() code WC 10.7.0

public function get_cart(): WC_Cart {
	return $this->cart;
}