Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unable to reposition billing addresses
<?php
add_filter( 'woocommerce_checkout_fields', 'hbeer_reorder_checkout_fields' );
function hbeer_reorder_checkout_fields( $checkout_fields ) {
$checkout_fields['billing']['billing_address_1']['priority'] = 5;
$checkout_fields['billing']['billing_address_2']['priority'] = 5;
$checkout_fields['billing']['billing_email']['priority'] = 4;
return $checkout_fields;
}
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.