WC_Cart::get_cart_contents_total()
Gets cart total. This is the total of items in the cart, but after discounts. Subtotal is before discounts.
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. |
WC_Cart::get_cart_contents_total() WC Cart::get cart contents total code WC 9.8.1
public function get_cart_contents_total() { return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_total' ) ); }