Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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