woocommerce_cart_total_discount

woocommerce_cart_total_discount

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_cart_total_discount') is found 1 times:

  • /includes/class-wc-cart.php line 2130
    	 *
    	 * @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() {