WC_Cart::is_empty()

Checks if the cart is empty.


Description Description


Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function is_empty() {
		return 0 === count( $this->get_cart() );
	}


Top ↑

User Contributed Notes User Contributed Notes

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