Skip to content

Commit

Permalink
Inline docs for #12409
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Nov 25, 2016
1 parent afe59f6 commit 52be225
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/class-wc-countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52be225

Please sign in to comment.