Hooks for countries and states. Closes #849.
This commit is contained in:
parent
2927a52743
commit
fa74010038
|
@ -21,7 +21,7 @@ class WC_Countries {
|
||||||
*/
|
*/
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
|
||||||
$this->countries = array(
|
$this->countries = apply_filters('woocommerce_countries', array(
|
||||||
'AF' => __('Afghanistan', 'woocommerce'),
|
'AF' => __('Afghanistan', 'woocommerce'),
|
||||||
'AX' => __('Aland Islands', 'woocommerce'),
|
'AX' => __('Aland Islands', 'woocommerce'),
|
||||||
'AL' => __('Albania', 'woocommerce'),
|
'AL' => __('Albania', 'woocommerce'),
|
||||||
|
@ -267,9 +267,9 @@ class WC_Countries {
|
||||||
'YE' => __('Yemen', 'woocommerce'),
|
'YE' => __('Yemen', 'woocommerce'),
|
||||||
'ZM' => __('Zambia', 'woocommerce'),
|
'ZM' => __('Zambia', 'woocommerce'),
|
||||||
'ZW' => __('Zimbabwe', 'woocommerce')
|
'ZW' => __('Zimbabwe', 'woocommerce')
|
||||||
);
|
));
|
||||||
|
|
||||||
$this->states = array(
|
$this->states = apply_filters('woocommerce_states', array(
|
||||||
'AU' => array(
|
'AU' => array(
|
||||||
'ACT' => __('Australian Capital Territory', 'woocommerce') ,
|
'ACT' => __('Australian Capital Territory', 'woocommerce') ,
|
||||||
'NSW' => __('New South Wales', 'woocommerce') ,
|
'NSW' => __('New South Wales', 'woocommerce') ,
|
||||||
|
@ -408,7 +408,7 @@ class WC_Countries {
|
||||||
'AP' => __('Pacific', 'woocommerce')
|
'AP' => __('Pacific', 'woocommerce')
|
||||||
),
|
),
|
||||||
'VN' => array()
|
'VN' => array()
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** get base country */
|
/** get base country */
|
||||||
|
|
|
@ -166,6 +166,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Tweak - Optimised price filter query (Thanks Lucas Stark)
|
* Tweak - Optimised price filter query (Thanks Lucas Stark)
|
||||||
* Tweak - woocommerce_attribute_label filter
|
* Tweak - woocommerce_attribute_label filter
|
||||||
* Tweak - When mix and max price are the same, don't show price filter
|
* Tweak - When mix and max price are the same, don't show price filter
|
||||||
|
* Tweak - Hooks for countries and states
|
||||||
* Fix - Search/filter compatibility with relevanssi
|
* Fix - Search/filter compatibility with relevanssi
|
||||||
* Fix - After tax coupons for categories
|
* Fix - After tax coupons for categories
|
||||||
* Fix - Multiple variation image upload
|
* Fix - Multiple variation image upload
|
||||||
|
|
Loading…
Reference in New Issue