Skip to content

Instantly share code, notes, and snippets.

@woogist
Created September 29, 2021 12:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save woogist/0727f049858a30e53c2ce18801f8f3a4 to your computer and use it in GitHub Desktop.
filter the countries where the VAT number field will show for
add_filter( 'woocommerce_eu_vat_number_country_codes', 'woo_custom_eu_vat_number_country_codes' );
function woo_custom_eu_vat_number_country_codes( $vat_countries ) {
// only show field for users in BE
return array( 'BE' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment