Also pass on the country to the address fields filters

This commit is contained in:
Geert De Deckere 2013-01-27 12:22:06 +01:00
parent 2801c963d9
commit 5233900283
1 changed files with 2 additions and 2 deletions

View File

@ -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