wc_round_tax_total

wc_round_tax_total

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('wc_round_tax_total') is found 1 times:

  • /includes/wc-formatting-functions.php line 238
    function wc_round_tax_total( $value, $precision = null ) {
    	$precision   = is_null( $precision ) ? wc_get_price_decimals() : intval( $precision );
    	$rounded_tax = NumberUtil::round( $value, $precision, wc_get_tax_rounding_mode() ); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctionParameters.round_modeFound
    
    	return apply_filters( 'wc_round_tax_total', $rounded_tax, $value, $precision, WC_TAX_ROUNDING_MODE );
    }
    
    /**
     * Round half down in PHP 5.2.
     *
     * @since 3.2.6