WC_Cart::get_cart_contents()

Gets cart contents.


Description Description


Return Return

(array) of cart items


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function get_cart_contents() {
		return apply_filters( 'woocommerce_get_cart_contents', (array) $this->cart_contents );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.