gotreu_default_tax_rates

Updated 15 September 2026

On this page

Description

Changes the built-in VAT rates, or removes countries. The rates are used everywhere: in the calculation, the rate shown in the form and the list of EU countries. A country you remove is treated as a country outside the EU, so its customers don’t see the VAT field and pay no VAT.

The plugin calculates with the standard rate. The reduced rate is only shown in the list of rates on the settings page. See also VAT rates.

A form specific variant exists as well: add _FORMID to the hook name, for example gotreu_default_tax_rates_3 for form 3. Since version 1.1 it works everywhere the form is known; the list of rates on the settings page only uses the general filter.

Parameters

$rates | Array. One entry per country with the country code as key (NL, DE, … and EL for Greece). Every entry holds country_name, standard and reduced

$form_id | Int. Only passed to the form specific variant

Return

Array

Usage

Copy the below code to the functions.php of your child theme or to your snippet plugin.

<?php
add_filter( 'gotreu_default_tax_rates', function( $rates ) {
    // Charge 9% to customers in the Netherlands.
    $rates['NL']['standard'] = 9;

    // Treat Malta as a country outside the EU.
    unset( $rates['MT'] );

    return $rates;
} );

// Only for form 3: customers in Germany pay 7%.
add_filter( 'gotreu_default_tax_rates_3', function( $rates, $form_id ) {
    $rates['DE']['standard'] = 7;
    return $rates;
}, 10, 2 );

Since

version 0.6

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top