woocommerce_get_order_item_totals_excl_free_fees

woocommerce_get_order_item_totals_excl_free_fees

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_order_item_totals_excl_free_fees') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2352
    2348
    2349
    2350
    2351
    2352
    2353
    2354
    2355
    2356
    2357
    2358
    $fees = $this->get_fees();
     
    if ( $fees ) {
        foreach ( $fees as $id => $fee ) {
            if ( apply_filters( 'woocommerce_get_order_item_totals_excl_free_fees', empty( $fee['line_total'] ) && empty( $fee['line_tax'] ), $id ) ) {
                continue;
            }
            $total_rows[ 'fee_' . $fee->get_id() ] = array(
                'type'  => 'fee',
                'label' => $fee->get_name() . ':',
                'value' => wc_price( 'excl' === $tax_display ? (float) $fee->get_total() : (float) $fee->get_total() + (float) $fee->get_total_tax(), array( 'currency' => $this->get_currency() ) ),