From b43dc034e08e290ee549c7c966fde88d08e94554 Mon Sep 17 00:00:00 2001 From: Brent Shepherd Date: Fri, 25 May 2012 16:36:38 +1000 Subject: [PATCH] Adding order_shipping_to_display & order_subtotal_to_display filters. --- classes/class-wc-order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/class-wc-order.php b/classes/class-wc-order.php index f2caf04cad3..80b58e5af9e 100644 --- a/classes/class-wc-order.php +++ b/classes/class-wc-order.php @@ -449,7 +449,7 @@ class WC_Order { endif; - return $subtotal; + return apply_filters( 'woocommerce_order_subtotal_to_display', $subtotal, $compound, $this ); } /** Gets shipping (formatted) */ @@ -484,7 +484,7 @@ class WC_Order { $shipping = __('Free!', 'woocommerce'); endif; - return $shipping; + return apply_filters( 'woocommerce_order_shipping_to_display', $shipping, $this ); } /** Get a product (either product or variation) */