woocommerce_cart_total_discount

woocommerce_cart_total_discount

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_cart_total_discount') is found 1 times:

  • /includes/class-wc-cart.php line 2120
    	 *
    	 * @return mixed formatted price or false if there are none
    	 */
    	public function get_total_discount() {
    		return apply_filters( 'woocommerce_cart_total_discount', $this->get_discount_total() ? wc_price( $this->get_discount_total() ) : false, $this );
    	}
    
    	/**
    	 * Reset cart totals to the defaults. Useful before running calculations.
    	 */
    	private function reset_totals() {