woocommerce_order_get_total_discount

woocommerce_order_get_total_discount

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_order_get_total_discount') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 496
    			$total_discount = (float) $this->get_discount_total();
    		} else {
    			$total_discount = (float) $this->get_discount_total() + (float) $this->get_discount_tax();
    		}
    		return apply_filters( 'woocommerce_order_get_total_discount', NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION ), $this );
    	}
    
    	/**
    	 * Gets order subtotal. Order subtotal is the price of all items excluding taxes, fees, shipping cost, and coupon discounts.
    	 * If sale price is set on an item, the subtotal will include this sale discount. E.g. a product with a regular
    	 * price of $100 bought at a 50% discount will represent $50 of the subtotal for the order.