Merge pull request #5660 from tamarazuk/upstream

Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
This commit is contained in:
Mike Jolley 2014-06-30 12:00:25 +01:00
commit 779613b062
1 changed files with 1 additions and 1 deletions

View File

@ -1323,7 +1323,7 @@ class WC_Order {
if ( $fees = $this->get_fees() )
foreach( $fees as $id => $fee ) {
if ( $fee['line_total'] + $fee['line_tax'] == 0 ) {
if ( apply_filters( 'woocommerce_get_order_item_totals_excl_free_fees', $fee['line_total'] + $fee['line_tax'] == 0, $id ) ) {
continue;
}