Also pass on the country to the address fields filters
This commit is contained in:
parent
2801c963d9
commit
5233900283
|
@ -1038,9 +1038,9 @@ class WC_Countries {
|
|||
'clear' => true
|
||||
);
|
||||
|
||||
$address_fields = apply_filters('woocommerce_billing_fields', $address_fields);
|
||||
$address_fields = apply_filters( 'woocommerce_billing_fields', $address_fields, $country );
|
||||
} else {
|
||||
$address_fields = apply_filters('woocommerce_shipping_fields', $address_fields);
|
||||
$address_fields = apply_filters( 'woocommerce_shipping_fields', $address_fields, $country );
|
||||
}
|
||||
|
||||
// Return
|
||||
|
|
Loading…
Reference in New Issue