woocommerce_cart_totals_get_fees_from_cart_taxes, $fee->taxes, $fee, $this

woocommerce_cart_totals_get_fees_from_cart_taxes, $fee->taxes, $fee, $this

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_cart_totals_get_fees_from_cart_taxes, $fee->taxes, $fee, $this') is found 1 times:

  • /includes/class-wc-cart-totals.php line 319
    					$fee->taxes = WC_Tax::calc_tax( $fee->total, WC_Tax::get_rates( $fee->tax_class, $this->cart->get_customer() ), false );
    				}
    			}
    
    			$fee->taxes     = apply_filters( 'woocommerce_cart_totals_get_fees_from_cart_taxes', $fee->taxes, $fee, $this );
    			$fee->total_tax = array_sum( array_map( array( $this, 'round_line_tax' ), $fee->taxes ) );
    
    			// Set totals within object.
    			$fee->object->total    = wc_remove_number_precision_deep( $fee->total );
    			$fee->object->tax_data = wc_remove_number_precision_deep( $fee->taxes );
    			$fee->object->tax      = wc_remove_number_precision_deep( $fee->total_tax );