Merge pull request #2292 from GeertDD/address_fields_filter

Also pass on the country to the address fields filters
This commit is contained in:
Mike Jolley 2013-01-27 11:01:17 -08:00
commit 23952237da
1 changed files with 2 additions and 2 deletions

View File

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