WordPress at Your Fingertips
function is not described

WC_Cart::get_cart_contents_total() public WC 3.2.0

Gets cart total. This is the total of items in the cart, but after discounts. Subtotal is before discounts.

{} It's a method of the class: WC_Cart{}

Hooks from the method
Return

float.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_cart_contents_total();

Changelog

Since 3.2.0 Introduced.

Code of WC_Cart::get_cart_contents_total() WC 5.6.0

public function get_cart_contents_total() {
	return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_total' ) );
}