Merge pull request #5660 from tamarazuk/upstream
Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
This commit is contained in:
commit
779613b062
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue