Created
April 2, 2019 11:29
-
-
Save webdados/35d33f58c566c1daaaadf0be489880a6 to your computer and use it in GitHub Desktop.
Change “Invoicing with InvoiceXpress for WooCommerce” VAT field label
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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