filter allowed countries/states

This commit is contained in:
Mike Jolley 2013-04-16 13:55:20 +01:00
parent 1de718099b
commit c5ef95e521
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ class WC_Countries {
foreach ( $allowed_countries_raw as $country )
$allowed_countries[ $country ] = $this->countries[ $country ];
return $allowed_countries;
return apply_filters( 'woocommerce_countries_allowed_countries', $allowed_countries );
}
@ -391,7 +391,7 @@ class WC_Countries {
if ( ! empty( $this->states[ $country ] ) )
$allowed_states[ $country ] = $this->states[ $country ];
return $allowed_states;
return apply_filters( 'woocommerce_countries_allowed_country_states', $allowed_states );
}