Adding order_shipping_to_display & order_subtotal_to_display filters.
This commit is contained in:
parent
48c222f9d1
commit
b43dc034e0
|
@ -449,7 +449,7 @@ class WC_Order {
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
return $subtotal;
|
return apply_filters( 'woocommerce_order_subtotal_to_display', $subtotal, $compound, $this );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Gets shipping (formatted) */
|
/** Gets shipping (formatted) */
|
||||||
|
@ -484,7 +484,7 @@ class WC_Order {
|
||||||
$shipping = __('Free!', 'woocommerce');
|
$shipping = __('Free!', 'woocommerce');
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
return $shipping;
|
return apply_filters( 'woocommerce_order_shipping_to_display', $shipping, $this );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get a product (either product or variation) */
|
/** Get a product (either product or variation) */
|
||||||
|
|
Loading…
Reference in New Issue