-
-
Save AndreaBarghigiani/ed3b47c3a4da2d26e3150bf62db1c30b to your computer and use it in GitHub Desktop.
Unable to reposition billing addresses
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', '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