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.
Метод класса: WC_Cart{}
Хуки из метода
Возвращает
float|Строку|int.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->get_cart_contents_total();
Список изменений
| С версии 3.2.0 | Введена. |
Код WC_Cart::get_cart_contents_total() WC Cart::get cart contents total WC 10.4.3
public function get_cart_contents_total() {
return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_total' ) );
}