wc_cart_totals_subtotal_html

Get the subtotal.

Description

(string) wc_cart_totals_subtotal_html(); 

Returns (string)


Usage

  1. if ( !function_exists( 'wc_cart_totals_subtotal_html' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-cart-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_cart_totals_subtotal_html(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-cart-functions.php  
  1. function wc_cart_totals_subtotal_html() { 
  2. echo WC()->cart->get_cart_subtotal();