Created
February 22, 2019 17:13
-
-
Save webdados/6808ba594b6296cc93100b77d29927ed to your computer and use it in GitHub Desktop.
InvoiceXpress for WooCommerce change VAT field class
This file contains hidden or 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 to your child theme functions.php file | |
add_filter( 'woocommerce_checkout_fields', function( $fields ) { | |
if ( isset( $fields['billing']['billing_VAT_code'] ) ) $fields['billing']['billing_VAT_code']['class'] = array( 'form-row-first' ); | |
return $fields; | |
}, 60 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment