Merge pull request #2292 from GeertDD/address_fields_filter
Also pass on the country to the address fields filters
This commit is contained in:
commit
23952237da
|
@ -1040,9 +1040,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