woocommerce_cart_totals_get_item_tax_rates, $item_tax_rates, $item, $this->cart

woocommerce_cart_totals_get_item_tax_rates, $item_tax_rates, $item, $this->cart

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_cart_totals_get_item_tax_rates, $item_tax_rates, $item, $this->cart') is found 1 times:

  • /includes/class-wc-cart-totals.php line 498
    		$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