This function is used to retrieve the cart item from the session in WooCommerce. It retrieves the product ID, variation ID, variation, quantity and data of the item, and stores it in an array. The function then returns the array containing the cart item session information.
Was this code snippet helpful?
YesNo