woocommerce_cart_totals_get_item_tax_rates

woocommerce_cart_totals_get_item_tax_rates

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_totals_get_item_tax_rates') is found 1 times:

  • /includes/class-wc-cart-totals.php line 503
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
        $tax_class      = $item->product->get_tax_class();
        $item_tax_rates = isset( $this->item_tax_rates[ $tax_class ] ) ? $this->item_tax_rates[ $tax_class ] : $this->item_tax_rates[ $tax_class ] = WC_Tax::get_rates( $item->product->get_tax_class(), $this->cart->get_customer() );
     
        // Allow plugins to filter item tax rates.
        return apply_filters( 'woocommerce_cart_totals_get_item_tax_rates', $item_tax_rates, $item, $this->cart );
    }
     
    /**
     * Get item costs grouped by tax class.
     *
     * @since  3.2.0