woocommerce_order_get_total_discount, NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION
woocommerce_order_get_total_discount, NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_order_get_total_discount, NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION') is found 1 times:
- /includes/abstracts/abstract-wc-order.php line 586
$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.