Skip to content

Commit 52be225

Browse files
committed
Inline docs for #12409
1 parent afe59f6 commit 52be225

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

includes/class-wc-countries.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,12 @@ public function get_address_fields( $country = '', $type = 'billing_' ) {
10391039
);
10401040
}
10411041

1042+
/**
1043+
* Important note on this filter: Changes to address fields can and will be overridden by
1044+
* the woocommerce_default_address_fields. The locales/default locales apply on top based
1045+
* on country selection. If you want to change things like the required status of an
1046+
* address field, filter woocommerce_default_address_fields instead.
1047+
*/
10421048
$address_fields = apply_filters( 'woocommerce_' . $type . 'fields', $address_fields, $country );
10431049

10441050
return $address_fields;

0 commit comments

Comments
 (0)