woocommerce_cart_totals_get_fees_from_cart_taxes

woocommerce_cart_totals_get_fees_from_cart_taxes

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_totals_get_fees_from_cart_taxes') is found 1 times:

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