I am trying to change the order of the Woocommerce checkout page fields, but it's not working for me. I have tried the following code:
add_filter( 'woocommerce_default_address_fields', 'bbloomer_move_checkout_fields_woo_3' );
function bbloomer_move_checkout_fields_woo_3( $fields ) {
$fields['billing']['billing_email']['priority'] = 3;
return $fields;
}
It change the order for a while and then re-order the fields in the original format after a fraction of second. I don't know what I am doing wrong.