I need to position the field of zip before the address because I will load the address using the api of the mails, I can position the other fields, but the "billing_postcode" does not obey the order, what can be?
add_filter("woocommerce_checkout_fields", "order_fields", 30);
function order_fields($fields) {
$fields["billing"]["billing_cpf_cli"]["priority"] = 8;
$fields["billing"]["billing_rg_cli"]["priority"] = 9;
$fields["billing"]["billing_postcode"]["priority"] = 10;
$fields["billing"]["billing_address_1"]["priority"] = 11;
$fields["billing"]["billing_num_cli"]["priority"] = 20;
$fields["billing"]["billing_bairro_cli"]["priority"] = 21;
return $fields;
}
add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');