Skip to content
Permalink
Browse files

Inline docs for #12409

  • Loading branch information
mikejolley committed Nov 25, 2016
1 parent afe59f6 commit 52be22511c5b7431c6b674c8abaf763fdbda9a9d
Showing with 6 additions and 0 deletions.
  1. +6 −0 includes/class-wc-countries.php
@@ -1039,6 +1039,12 @@ public function get_address_fields( $country = '', $type = 'billing_' ) {
);
}

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

return $address_fields;

0 comments on commit 52be225

Please sign in to comment.
You can’t perform that action at this time.