Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
AgenticCheckoutSession::get_cart
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() AgenticCheckoutSession::get cart code WC 10.7.0
public function get_cart(): WC_Cart {
return $this->cart;
}