Skip to content

Instantly share code, notes, and snippets.

@webdados
Created April 2, 2019 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/35d33f58c566c1daaaadf0be489880a6 to your computer and use it in GitHub Desktop.
Save webdados/35d33f58c566c1daaaadf0be489880a6 to your computer and use it in GitHub Desktop.
Change “Invoicing with InvoiceXpress for WooCommerce” VAT field label
<?php
add_filter( 'woocommerce_checkout_fields', 'my_woocommerce_checkout_fields', 60 );
function my_woocommerce_checkout_fields( $fields ) {
if ( isset( $fields['billing']['billing_VAT_code'] ) ) {
$fields['billing']['billing_VAT_code']['label'] = 'My own label'; //If you are running a multilingual website you should be using __() so it can be translated
}
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment