Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable VAT ID check for Swiss VAT IDs
<?php
add_filter( 'woocommerce_gzdp_country_supports_vat_id', function( $supports_vat, $country, $postcode ) {
if ( 'CH' === $country ) {
$supports_vat = false;
}
return $supports_vat;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment