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.5.1

apply_filters('woocommerce_cart_totals_get_item_tax_rates') is found 1 times:

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