Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AndreaBarghigiani
Created October 9, 2019 10:42
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 AndreaBarghigiani/ed3b47c3a4da2d26e3150bf62db1c30b to your computer and use it in GitHub Desktop.
Save AndreaBarghigiani/ed3b47c3a4da2d26e3150bf62db1c30b to your computer and use it in GitHub Desktop.
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