@@ 128-133 (lines=6) @@ | ||
125 | $current_class = $this->get_current_tax_class(); |
|
126 | ||
127 | $countries = array(); |
|
128 | foreach ( WC()->countries->get_allowed_countries() as $value => $label ) { |
|
129 | $countries[] = array( |
|
130 | 'value' => $value, |
|
131 | 'label' => esc_js( html_entity_decode( $label ) ), |
|
132 | ); |
|
133 | } |
|
134 | ||
135 | $states = array(); |
|
136 | foreach ( WC()->countries->get_allowed_country_states() as $label ) { |
|
@@ 136-143 (lines=8) @@ | ||
133 | } |
|
134 | ||
135 | $states = array(); |
|
136 | foreach ( WC()->countries->get_allowed_country_states() as $label ) { |
|
137 | foreach ( $label as $code => $state ) { |
|
138 | $states[] = array( |
|
139 | 'value' => $code, |
|
140 | 'label' => esc_js( html_entity_decode( $state ) ), |
|
141 | ); |
|
142 | } |
|
143 | } |
|
144 | ||
145 | $base_url = admin_url( add_query_arg( array( |
|
146 | 'page' => 'wc-settings', |