Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reorder EU VAT field on checkout page
<?php
/**
* Reorder EU VAT field on checkout page
*
* @param $fields array The original array with the checkout fields
* @return $fields array The updated array with the checkout fields
* @see https://woocommerce.com/products/eu-vat-number/
*/
function smntcs_reorder_eu_vat_field( $fields ) {
$fields['billing']['billing_vat_number']['priority'] = 35;
return $fields;
}
add_filter( 'woocommerce_checkout_fields', 'smntcs_reorder_eu_vat_field', 11 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.