Completed
Pull Request — master (#1907)
by
unknown
19:56
created

country-functions.php ➔ give_get_states()   B

Complexity

Conditions 3
Paths 4

Size

Total Lines 25
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
cc 3
eloc 8
nc 4
nop 1
dl 0
loc 25
ccs 0
cts 19
cp 0
crap 12
rs 8.8571
c 0
b 0
f 0
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 23 and the first side effect is on line 14.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/**
3
 * Country Functions
4
 *
5
 * @package     Give
6
 * @subpackage  Functions
7
 * @copyright   Copyright (c) 2016, WordImpress
8
 * @license     https://opensource.org/licenses/gpl-license GNU Public License
9
 * @since       1.0
10
 */
11
12
// Exit if accessed directly.
13
if ( ! defined( 'ABSPATH' ) ) {
14
	exit;
15
}
16
17
/**
18
 * Get Shop Base Country
19
 *
20
 * @since 1.0
21
 * @return string $country The two letter country code for the shop's base country
22
 */
23
function give_get_country() {
24
	$give_options = give_get_settings();
25
	$country = isset( $give_options['base_country'] ) ? $give_options['base_country'] : 'US';
26
27
	return apply_filters( 'give_give_country', $country );
28
}
29
30
/**
31
 * Get Shop Base State
32
 *
33
 * @since 1.0
34
 * @return string $state The shop's base state name
35
 */
36
function give_get_state() {
37
	$give_options = give_get_settings();
38
	$state = isset( $give_options['base_state'] ) ? $give_options['base_state'] : false;
39
40
	return apply_filters( 'give_give_state', $state );
41
}
42
43
/**
44
 * Get Shop States
45
 *
46
 * @since 1.0
47
 *
48
 * @param null $country
49
 *
50
 * @return mixed|void  A list of states for the shop's base country
51
 */
52
function give_get_states( $country = null ) {
53
	// If Country have no states return empty array.
54
	$states = array();
55
56
	// Check if Country Code is empty or not.
57
	if ( empty( $country ) ) {
58
		// Get defalut country code that is being set by the admin.
59
		$country = give_get_country();
60
	}
61
62
	// Get all the list of the states in array key format where key is the country code and value is the states that it contain.
63
	$states_list = give_states_list();
64
65
	// Check if $country code exists in the array key.
66
	if ( array_key_exists( $country, $states_list ) ) {
67
		$states = $states_list[ $country ];
68
	}
69
70
	/**
71
	 * Filter the query in case tables are non-standard.
72
	 *
73
	 * @param string $query Database count query
74
	 */
75
	return (array) apply_filters( 'give_give_states', $states );
76
}
77
78
/**
79
 * Get Country List
80
 *
81
 * @since 1.0
82
 * @return array $countries A list of the available countries
83
 */
84
function give_get_country_list() {
85
	$countries = array(
86
		''   => '',
87
		'US' => esc_html__( 'United States', 'give' ),
88
		'CA' => esc_html__( 'Canada', 'give' ),
89
		'GB' => esc_html__( 'United Kingdom', 'give' ),
90
		'AF' => esc_html__( 'Afghanistan', 'give' ),
91
		'AL' => esc_html__( 'Albania', 'give' ),
92
		'DZ' => esc_html__( 'Algeria', 'give' ),
93
		'AS' => esc_html__( 'American Samoa', 'give' ),
94
		'AD' => esc_html__( 'Andorra', 'give' ),
95
		'AO' => esc_html__( 'Angola', 'give' ),
96
		'AI' => esc_html__( 'Anguilla', 'give' ),
97
		'AQ' => esc_html__( 'Antarctica', 'give' ),
98
		'AG' => esc_html__( 'Antigua and Barbuda', 'give' ),
99
		'AR' => esc_html__( 'Argentina', 'give' ),
100
		'AM' => esc_html__( 'Armenia', 'give' ),
101
		'AW' => esc_html__( 'Aruba', 'give' ),
102
		'AU' => esc_html__( 'Australia', 'give' ),
103
		'AT' => esc_html__( 'Austria', 'give' ),
104
		'AZ' => esc_html__( 'Azerbaijan', 'give' ),
105
		'BS' => esc_html__( 'Bahamas', 'give'),
106
		'BH' => esc_html__( 'Bahrain', 'give' ),
107
		'BD' => esc_html__( 'Bangladesh', 'give' ),
108
		'BB' => esc_html__( 'Barbados', 'give' ),
109
		'BY' => esc_html__( 'Belarus', 'give' ),
110
		'BE' => esc_html__( 'Belgium', 'give' ),
111
		'BZ' => esc_html__( 'Belize', 'give' ),
112
		'BJ' => esc_html__( 'Benin', 'give' ),
113
		'BM' => esc_html__( 'Bermuda', 'give' ),
114
		'BT' => esc_html__( 'Bhutan', 'give' ),
115
		'BO' => esc_html__( 'Bolivia', 'give' ),
116
		'BA' => esc_html__( 'Bosnia and Herzegovina', 'give' ),
117
		'BW' => esc_html__( 'Botswana', 'give' ),
118
		'BV' => esc_html__( 'Bouvet Island', 'give' ),
119
		'BR' => esc_html__( 'Brazil', 'give' ),
120
		'IO' => esc_html__( 'British Indian Ocean Territory', 'give' ),
121
		'BN' => esc_html__( 'Brunei Darrussalam', 'give' ),
122
		'BG' => esc_html__( 'Bulgaria', 'give' ),
123
		'BF' => esc_html__( 'Burkina Faso', 'give' ),
124
		'BI' => esc_html__( 'Burundi', 'give' ),
125
		'KH' => esc_html__( 'Cambodia', 'give' ),
126
		'CM' => esc_html__( 'Cameroon', 'give' ),
127
		'CV' => esc_html__( 'Cape Verde', 'give' ),
128
		'KY' => esc_html__( 'Cayman Islands', 'give' ),
129
		'CF' => esc_html__( 'Central African Republic', 'give' ),
130
		'TD' => esc_html__( 'Chad', 'give' ),
131
		'CL' => esc_html__( 'Chile', 'give' ),
132
		'CN' => esc_html__( 'China', 'give' ),
133
		'CX' => esc_html__( 'Christmas Island', 'give' ),
134
		'CC' => esc_html__( 'Cocos Islands', 'give' ),
135
		'CO' => esc_html__( 'Colombia', 'give' ),
136
		'KM' => esc_html__( 'Comoros', 'give' ),
137
		'CD' => esc_html__( 'Congo, Democratic People\'s Republic', 'give' ),
138
		'CG' => esc_html__( 'Congo, Republic of', 'give' ),
139
		'CK' => esc_html__( 'Cook Islands', 'give' ),
140
		'CR' => esc_html__( 'Costa Rica', 'give' ),
141
		'CI' => esc_html__( 'Cote d\'Ivoire', 'give' ),
142
		'HR' => esc_html__( 'Croatia/Hrvatska', 'give' ),
143
		'CU' => esc_html__( 'Cuba', 'give' ),
144
		'CY' => esc_html__( 'Cyprus Island', 'give' ),
145
		'CZ' => esc_html__( 'Czech Republic', 'give' ),
146
		'DK' => esc_html__( 'Denmark', 'give' ),
147
		'DJ' => esc_html__( 'Djibouti', 'give' ),
148
		'DM' => esc_html__( 'Dominica', 'give' ),
149
		'DO' => esc_html__( 'Dominican Republic', 'give' ),
150
		'TP' => esc_html__( 'East Timor', 'give' ),
151
		'EC' => esc_html__( 'Ecuador', 'give' ),
152
		'EG' => esc_html__( 'Egypt', 'give' ),
153
		'GQ' => esc_html__( 'Equatorial Guinea', 'give' ),
154
		'SV' => esc_html__( 'El Salvador', 'give' ),
155
		'ER' => esc_html__( 'Eritrea', 'give' ),
156
		'EE' => esc_html__( 'Estonia', 'give' ),
157
		'ET' => esc_html__( 'Ethiopia', 'give' ),
158
		'FK' => esc_html__( 'Falkland Islands', 'give' ),
159
		'FO' => esc_html__( 'Faroe Islands', 'give' ),
160
		'FJ' => esc_html__( 'Fiji', 'give' ),
161
		'FI' => esc_html__( 'Finland', 'give' ),
162
		'FR' => esc_html__( 'France', 'give' ),
163
		'GF' => esc_html__( 'French Guiana', 'give' ),
164
		'PF' => esc_html__( 'French Polynesia', 'give' ),
165
		'TF' => esc_html__( 'French Southern Territories', 'give' ),
166
		'GA' => esc_html__( 'Gabon', 'give' ),
167
		'GM' => esc_html__( 'Gambia', 'give' ),
168
		'GE' => esc_html__( 'Georgia', 'give' ),
169
		'DE' => esc_html__( 'Germany', 'give' ),
170
		'GR' => esc_html__( 'Greece', 'give' ),
171
		'GH' => esc_html__( 'Ghana', 'give' ),
172
		'GI' => esc_html__( 'Gibraltar', 'give' ),
173
		'GL' => esc_html__( 'Greenland', 'give' ),
174
		'GD' => esc_html__( 'Grenada', 'give' ),
175
		'GP' => esc_html__( 'Guadeloupe', 'give' ),
176
		'GU' => esc_html__( 'Guam', 'give' ),
177
		'GT' => esc_html__( 'Guatemala', 'give' ),
178
		'GG' => esc_html__( 'Guernsey', 'give' ),
179
		'GN' => esc_html__( 'Guinea', 'give' ),
180
		'GW' => esc_html__( 'Guinea-Bissau', 'give' ),
181
		'GY' => esc_html__( 'Guyana', 'give' ),
182
		'HT' => esc_html__( 'Haiti', 'give' ),
183
		'HM' => esc_html__( 'Heard and McDonald Islands', 'give' ),
184
		'VA' => esc_html__( 'Holy See (City Vatican State)', 'give' ),
185
		'HN' => esc_html__( 'Honduras', 'give' ),
186
		'HK' => esc_html__( 'Hong Kong', 'give' ),
187
		'HU' => esc_html__( 'Hungary', 'give' ),
188
		'IS' => esc_html__( 'Iceland', 'give' ),
189
		'IN' => esc_html__( 'India', 'give' ),
190
		'ID' => esc_html__( 'Indonesia', 'give' ),
191
		'IR' => esc_html__( 'Iran', 'give' ),
192
		'IQ' => esc_html__( 'Iraq', 'give' ),
193
		'IE' => esc_html__( 'Ireland', 'give' ),
194
		'IM' => esc_html__( 'Isle of Man', 'give' ),
195
		'IL' => esc_html__( 'Israel', 'give' ),
196
		'IT' => esc_html__( 'Italy', 'give' ),
197
		'JM' => esc_html__( 'Jamaica', 'give' ),
198
		'JP' => esc_html__( 'Japan', 'give' ),
199
		'JE' => esc_html__( 'Jersey', 'give' ),
200
		'JO' => esc_html__( 'Jordan', 'give' ),
201
		'KZ' => esc_html__( 'Kazakhstan', 'give' ),
202
		'KE' => esc_html__( 'Kenya', 'give' ),
203
		'KI' => esc_html__( 'Kiribati', 'give' ),
204
		'KW' => esc_html__( 'Kuwait', 'give' ),
205
		'KG' => esc_html__( 'Kyrgyzstan', 'give' ),
206
		'LA' => esc_html__( 'Lao People\'s Democratic Republic', 'give' ),
207
		'LV' => esc_html__( 'Latvia', 'give' ),
208
		'LB' => esc_html__( 'Lebanon', 'give' ),
209
		'LS' => esc_html__( 'Lesotho', 'give' ),
210
		'LR' => esc_html__( 'Liberia', 'give' ),
211
		'LY' => esc_html__( 'Libyan Arab Jamahiriya', 'give' ),
212
		'LI' => esc_html__( 'Liechtenstein', 'give' ),
213
		'LT' => esc_html__( 'Lithuania', 'give' ),
214
		'LU' => esc_html__( 'Luxembourg', 'give' ),
215
		'MO' => esc_html__( 'Macau', 'give' ),
216
		'MK' => esc_html__( 'Macedonia', 'give' ),
217
		'MG' => esc_html__( 'Madagascar', 'give' ),
218
		'MW' => esc_html__( 'Malawi', 'give' ),
219
		'MY' => esc_html__( 'Malaysia', 'give' ),
220
		'MV' => esc_html__( 'Maldives', 'give' ),
221
		'ML' => esc_html__( 'Mali', 'give' ),
222
		'MT' => esc_html__( 'Malta', 'give' ),
223
		'MH' => esc_html__( 'Marshall Islands', 'give' ),
224
		'MQ' => esc_html__( 'Martinique', 'give' ),
225
		'MR' => esc_html__( 'Mauritania', 'give' ),
226
		'MU' => esc_html__( 'Mauritius', 'give' ),
227
		'YT' => esc_html__( 'Mayotte', 'give' ),
228
		'MX' => esc_html__( 'Mexico', 'give' ),
229
		'FM' => esc_html__( 'Micronesia', 'give' ),
230
		'MD' => esc_html__( 'Moldova, Republic of', 'give' ),
231
		'MC' => esc_html__( 'Monaco', 'give' ),
232
		'MN' => esc_html__( 'Mongolia', 'give' ),
233
		'ME' => esc_html__( 'Montenegro', 'give' ),
234
		'MS' => esc_html__( 'Montserrat', 'give' ),
235
		'MA' => esc_html__( 'Morocco', 'give' ),
236
		'MZ' => esc_html__( 'Mozambique', 'give' ),
237
		'MM' => esc_html__( 'Myanmar', 'give' ),
238
		'NA' => esc_html__( 'Namibia', 'give' ),
239
		'NR' => esc_html__( 'Nauru', 'give' ),
240
		'NP' => esc_html__( 'Nepal', 'give' ),
241
		'NL' => esc_html__( 'Netherlands', 'give' ),
242
		'AN' => esc_html__( 'Netherlands Antilles', 'give' ),
243
		'NC' => esc_html__( 'New Caledonia', 'give' ),
244
		'NZ' => esc_html__( 'New Zealand', 'give' ),
245
		'NI' => esc_html__( 'Nicaragua', 'give' ),
246
		'NE' => esc_html__( 'Niger', 'give' ),
247
		'NG' => esc_html__( 'Nigeria', 'give' ),
248
		'NU' => esc_html__( 'Niue', 'give' ),
249
		'NF' => esc_html__( 'Norfolk Island', 'give' ),
250
		'KP' => esc_html__( 'North Korea', 'give' ),
251
		'MP' => esc_html__( 'Northern Mariana Islands', 'give' ),
252
		'NO' => esc_html__( 'Norway', 'give' ),
253
		'OM' => esc_html__( 'Oman', 'give' ),
254
		'PK' => esc_html__( 'Pakistan', 'give' ),
255
		'PW' => esc_html__( 'Palau', 'give' ),
256
		'PS' => esc_html__( 'Palestinian Territories', 'give' ),
257
		'PA' => esc_html__( 'Panama', 'give' ),
258
		'PG' => esc_html__( 'Papua New Guinea', 'give' ),
259
		'PY' => esc_html__( 'Paraguay', 'give' ),
260
		'PE' => esc_html__( 'Peru', 'give' ),
261
		'PH' => esc_html__( 'Phillipines', 'give' ),
262
		'PN' => esc_html__( 'Pitcairn Island', 'give' ),
263
		'PL' => esc_html__( 'Poland', 'give' ),
264
		'PT' => esc_html__( 'Portugal', 'give' ),
265
		'PR' => esc_html__( 'Puerto Rico', 'give' ),
266
		'QA' => esc_html__( 'Qatar', 'give' ),
267
		'RE' => esc_html__( 'Reunion Island', 'give' ),
268
		'RO' => esc_html__( 'Romania', 'give' ),
269
		'RU' => esc_html__( 'Russian Federation', 'give' ),
270
		'RW' => esc_html__( 'Rwanda', 'give' ),
271
		'SH' => esc_html__( 'Saint Helena', 'give' ),
272
		'KN' => esc_html__( 'Saint Kitts and Nevis', 'give' ),
273
		'LC' => esc_html__( 'Saint Lucia', 'give' ),
274
		'PM' => esc_html__( 'Saint Pierre and Miquelon', 'give' ),
275
		'VC' => esc_html__( 'Saint Vincent and the Grenadines', 'give' ),
276
		'SM' => esc_html__( 'San Marino', 'give' ),
277
		'ST' => esc_html__( 'Sao Tome and Principe', 'give' ),
278
		'SA' => esc_html__( 'Saudi Arabia', 'give' ),
279
		'SN' => esc_html__( 'Senegal', 'give' ),
280
		'RS' => esc_html__( 'Serbia', 'give' ),
281
		'SC' => esc_html__( 'Seychelles', 'give' ),
282
		'SL' => esc_html__( 'Sierra Leone', 'give' ),
283
		'SG' => esc_html__( 'Singapore', 'give' ),
284
		'SK' => esc_html__( 'Slovak Republic', 'give' ),
285
		'SI' => esc_html__( 'Slovenia', 'give' ),
286
		'SB' => esc_html__( 'Solomon Islands', 'give' ),
287
		'SO' => esc_html__( 'Somalia', 'give' ),
288
		'ZA' => esc_html__( 'South Africa', 'give' ),
289
		'GS' => esc_html__( 'South Georgia', 'give' ),
290
		'KR' => esc_html__( 'South Korea', 'give' ),
291
		'ES' => esc_html__( 'Spain', 'give' ),
292
		'LK' => esc_html__( 'Sri Lanka', 'give' ),
293
		'SD' => esc_html__( 'Sudan', 'give' ),
294
		'SR' => esc_html__( 'Suriname', 'give' ),
295
		'SJ' => esc_html__( 'Svalbard and Jan Mayen Islands', 'give' ),
296
		'SZ' => esc_html__( 'Swaziland', 'give' ),
297
		'SE' => esc_html__( 'Sweden', 'give' ),
298
		'CH' => esc_html__( 'Switzerland', 'give' ),
299
		'SY' => esc_html__( 'Syrian Arab Republic', 'give' ),
300
		'TW' => esc_html__( 'Taiwan', 'give' ),
301
		'TJ' => esc_html__( 'Tajikistan', 'give' ),
302
		'TZ' => esc_html__( 'Tanzania', 'give' ),
303
		'TG' => esc_html__( 'Togo', 'give' ),
304
		'TK' => esc_html__( 'Tokelau', 'give' ),
305
		'TO' => esc_html__( 'Tonga', 'give' ),
306
		'TH' => esc_html__( 'Thailand', 'give' ),
307
		'TT' => esc_html__( 'Trinidad and Tobago', 'give' ),
308
		'TN' => esc_html__( 'Tunisia', 'give' ),
309
		'TR' => esc_html__( 'Turkey', 'give' ),
310
		'TM' => esc_html__( 'Turkmenistan', 'give' ),
311
		'TC' => esc_html__( 'Turks and Caicos Islands', 'give' ),
312
		'TV' => esc_html__( 'Tuvalu', 'give' ),
313
		'UG' => esc_html__( 'Uganda', 'give' ),
314
		'UA' => esc_html__( 'Ukraine', 'give' ),
315
		'AE' => esc_html__( 'United Arab Emirates', 'give' ),
316
		'UY' => esc_html__( 'Uruguay', 'give' ),
317
		'UM' => esc_html__( 'US Minor Outlying Islands', 'give' ),
318
		'UZ' => esc_html__( 'Uzbekistan', 'give' ),
319
		'VU' => esc_html__( 'Vanuatu', 'give' ),
320
		'VE' => esc_html__( 'Venezuela', 'give' ),
321
		'VN' => esc_html__( 'Vietnam', 'give' ),
322
		'VG' => esc_html__( 'Virgin Islands (British)', 'give' ),
323
		'VI' => esc_html__( 'Virgin Islands (USA)', 'give' ),
324
		'WF' => esc_html__( 'Wallis and Futuna Islands', 'give' ),
325
		'EH' => esc_html__( 'Western Sahara', 'give' ),
326
		'WS' => esc_html__( 'Western Samoa', 'give' ),
327
		'YE' => esc_html__( 'Yemen', 'give' ),
328
		'YU' => esc_html__( 'Yugoslavia', 'give' ),
329
		'ZM' => esc_html__( 'Zambia', 'give' ),
330
		'ZW' => esc_html__( 'Zimbabwe', 'give' )
331
	);
332
333
	return (array) apply_filters( 'give_countries', $countries );
334
}
335
336
/**
337
 * Get States List.
338
 *
339
 * @since 1.8.11
340
 *
341
 * @return array $states A list of the available states as in array key format.
342
 */
343
function give_states_list() {
344
	$states = array(
345
		'US' => give_get_states_list(),
346
		'CA' => give_get_provinces_list(),
347
		'AU' => give_get_australian_states_list(),
348
		'BR' => give_get_brazil_states_list(),
349
		'CN' => give_get_chinese_states_list(),
350
		'HK' => give_get_hong_kong_states_list(),
351
		'HU' => give_get_hungary_states_list(),
352
		'ID' => give_get_indonesian_states_list(),
353
		'IN' => give_get_indian_states_list(),
354
		'MY' => give_get_malaysian_states_list(),
355
		'NZ' => give_get_new_zealand_states_list(),
356
		'TH' => give_get_thailand_states_list(),
357
		'ZA' => give_get_south_african_states_list(),
358
		'ES' => give_get_spain_states_list(),
359
		'TR' => give_get_turkey_states_list(),
360
		'RO' => give_get_romania_states_list(),
361
		'PK' => give_get_pakistan_states_list(),
362
		'PH' => give_get_philippines_states_list(),
363
		'PE' => give_get_peru_states_list(),
364
		'NP' => give_get_nepal_states_list(),
365
		'NG' => give_get_nigerian_states_list(),
366
		'MX' => give_get_mexico_states_list(),
367
		'JP' => give_get_japan_states_list(),
368
		'IT' => give_get_italy_states_list(),
369
		'IR' => give_get_iran_states_list(),
370
		'IE' => give_get_ireland_states_list(),
371
		'GR' => give_get_greek_states_list(),
372
		'BO' => give_get_bolivian_states_list(),
373
		'BG' => give_get_bulgarian_states_list(),
374
		'BD' => give_get_bangladeshi_states_list(),
375
		'AR' => give_get_argentina_states_list(),
376
	);
377
	/**
378
	 * Filter can be used to add or remove the States from the Country.
379
	 *
380
	 * Filters can be use to add states inside the country all the states will be in array format ans the array key will be country code.
381
	 *
382
	 * @since 1.8.11
383
	 *
384
	 * @param array  $states Contain the list of states in array key format where key of the array is there respected country code.
385
	 */
386
	return (array) apply_filters( 'give_states_list', $states );
387
}
388
389
/**
390
 * List of Country that have no states init.
391
 *
392
 * There are some country which does not have states init Example: germany.
393
 *
394
 * @since 1.8.11
395
 *
396
 * $$country array $country_code.
397
 */
398
function give_no_states_country_list() {
399
	$country = array(
400
		'AT' => esc_html__( 'Austria', 'give' ),
401
		'BE' => esc_html__( 'Belgium', 'give' ),
402
		'CZ' => esc_html__( 'Czech Republic', 'give' ),
403
		'DE' => esc_html__( 'Germany', 'give' ),
404
		'EE' => esc_html__( 'Estonia', 'give' ),
405
		'FI' => esc_html__( 'Finland', 'give' ),
406
		'DK' => esc_html__( 'Denmark', 'give' ),
407
		'FR' => esc_html__( 'France', 'give' ),
408
		'IS' => esc_html__( 'Iceland', 'give' ),
409
		'NL' => esc_html__( 'Netherlands', 'give' ),
410
		'PL' => esc_html__( 'Poland', 'give' ),
411
		'PT' => esc_html__( 'Portugal', 'give' ),
412
		'SK' => esc_html__( 'Slovak Republic', 'give' ),
413
		'SI' => esc_html__( 'Slovenia', 'give' ),
414
		'VN' => esc_html__( 'Vietnam', 'give' ),
415
	);
416
417
	/**
418
	 * Filter can be used to add or remove the Country that does not have states init.
419
	 *
420
	 * @since 1.8.11
421
	 *
422
	 * @param array  $country Contain key as there country code & value as there country name.
423
	 */
424
	return (array) apply_filters( 'give_no_states_country_list', $country );
425
}
426
427
/**
428
 * Get Turkey States
429
 *
430
 * @since 1.8.12
431
 * @return array $states A list of states
432
 */
433
function give_get_turkey_states_list() {
434
	$states = array(
435
		''     => '',
436
		'TR01' => __( 'Adana', 'give' ),
437
		'TR02' => __( 'Ad&#305;yaman', 'give' ),
438
		'TR03' => __( 'Afyon', 'give' ),
439
		'TR04' => __( 'A&#287;r&#305;', 'give' ),
440
		'TR05' => __( 'Amasya', 'give' ),
441
		'TR06' => __( 'Ankara', 'give' ),
442
		'TR07' => __( 'Antalya', 'give' ),
443
		'TR08' => __( 'Artvin', 'give' ),
444
		'TR09' => __( 'Ayd&#305;n', 'give' ),
445
		'TR10' => __( 'Bal&#305;kesir', 'give' ),
446
		'TR11' => __( 'Bilecik', 'give' ),
447
		'TR12' => __( 'Bing&#246;l', 'give' ),
448
		'TR13' => __( 'Bitlis', 'give' ),
449
		'TR14' => __( 'Bolu', 'give' ),
450
		'TR15' => __( 'Burdur', 'give' ),
451
		'TR16' => __( 'Bursa', 'give' ),
452
		'TR17' => __( '&#199;anakkale', 'give' ),
453
		'TR18' => __( '&#199;ank&#305;r&#305;', 'give' ),
454
		'TR19' => __( '&#199;orum', 'give' ),
455
		'TR20' => __( 'Denizli', 'give' ),
456
		'TR21' => __( 'Diyarbak&#305;r', 'give' ),
457
		'TR22' => __( 'Edirne', 'give' ),
458
		'TR23' => __( 'Elaz&#305;&#287;', 'give' ),
459
		'TR24' => __( 'Erzincan', 'give' ),
460
		'TR25' => __( 'Erzurum', 'give' ),
461
		'TR26' => __( 'Eski&#351;ehir', 'give' ),
462
		'TR27' => __( 'Gaziantep', 'give' ),
463
		'TR28' => __( 'Giresun', 'give' ),
464
		'TR29' => __( 'G&#252;m&#252;&#351;hane', 'give' ),
465
		'TR30' => __( 'Hakkari', 'give' ),
466
		'TR31' => __( 'Hatay', 'give' ),
467
		'TR32' => __( 'Isparta', 'give' ),
468
		'TR33' => __( '&#304;&#231;el', 'give' ),
469
		'TR34' => __( '&#304;stanbul', 'give' ),
470
		'TR35' => __( '&#304;zmir', 'give' ),
471
		'TR36' => __( 'Kars', 'give' ),
472
		'TR37' => __( 'Kastamonu', 'give' ),
473
		'TR38' => __( 'Kayseri', 'give' ),
474
		'TR39' => __( 'K&#305;rklareli', 'give' ),
475
		'TR40' => __( 'K&#305;r&#351;ehir', 'give' ),
476
		'TR41' => __( 'Kocaeli', 'give' ),
477
		'TR42' => __( 'Konya', 'give' ),
478
		'TR43' => __( 'K&#252;tahya', 'give' ),
479
		'TR44' => __( 'Malatya', 'give' ),
480
		'TR45' => __( 'Manisa', 'give' ),
481
		'TR46' => __( 'Kahramanmara&#351;', 'give' ),
482
		'TR47' => __( 'Mardin', 'give' ),
483
		'TR48' => __( 'Mu&#287;la', 'give' ),
484
		'TR49' => __( 'Mu&#351;', 'give' ),
485
		'TR50' => __( 'Nev&#351;ehir', 'give' ),
486
		'TR51' => __( 'Ni&#287;de', 'give' ),
487
		'TR52' => __( 'Ordu', 'give' ),
488
		'TR53' => __( 'Rize', 'give' ),
489
		'TR54' => __( 'Sakarya', 'give' ),
490
		'TR55' => __( 'Samsun', 'give' ),
491
		'TR56' => __( 'Siirt', 'give' ),
492
		'TR57' => __( 'Sinop', 'give' ),
493
		'TR58' => __( 'Sivas', 'give' ),
494
		'TR59' => __( 'Tekirda&#287;', 'give' ),
495
		'TR60' => __( 'Tokat', 'give' ),
496
		'TR61' => __( 'Trabzon', 'give' ),
497
		'TR62' => __( 'Tunceli', 'give' ),
498
		'TR63' => __( '&#350;anl&#305;urfa', 'give' ),
499
		'TR64' => __( 'U&#351;ak', 'give' ),
500
		'TR65' => __( 'Van', 'give' ),
501
		'TR66' => __( 'Yozgat', 'give' ),
502
		'TR67' => __( 'Zonguldak', 'give' ),
503
		'TR68' => __( 'Aksaray', 'give' ),
504
		'TR69' => __( 'Bayburt', 'give' ),
505
		'TR70' => __( 'Karaman', 'give' ),
506
		'TR71' => __( 'K&#305;r&#305;kkale', 'give' ),
507
		'TR72' => __( 'Batman', 'give' ),
508
		'TR73' => __( '&#350;&#305;rnak', 'give' ),
509
		'TR74' => __( 'Bart&#305;n', 'give' ),
510
		'TR75' => __( 'Ardahan', 'give' ),
511
		'TR76' => __( 'I&#287;d&#305;r', 'give' ),
512
		'TR77' => __( 'Yalova', 'give' ),
513
		'TR78' => __( 'Karab&#252;k', 'give' ),
514
		'TR79' => __( 'Kilis', 'give' ),
515
		'TR80' => __( 'Osmaniye', 'give' ),
516
		'TR81' => __( 'D&#252;zce', 'give' ),
517
	);
518
	return apply_filters( 'give_turkey_states', $states );
519
}
520
521
/**
522
 * Get Romania States
523
 *
524
 * @since 1.8.12
525
 * @return array $states A list of states
526
 */
527
function give_get_romania_states_list() {
528
	$states = array (
529
		''     => '',
530
		'AB' => __( 'Alba' , 'give' ),
531
		'AR' => __( 'Arad' , 'give' ),
532
		'AG' => __( 'Arges' , 'give' ),
533
		'BC' => __( 'Bacau' , 'give' ),
534
		'BH' => __( 'Bihor' , 'give' ),
535
		'BN' => __( 'Bistrita-Nasaud' , 'give' ),
536
		'BT' => __( 'Botosani' , 'give' ),
537
		'BR' => __( 'Braila' , 'give' ),
538
		'BV' => __( 'Brasov' , 'give' ),
539
		'B'  => __( 'Bucuresti' , 'give' ),
540
		'BZ' => __( 'Buzau' , 'give' ),
541
		'CL' => __( 'Calarasi' , 'give' ),
542
		'CS' => __( 'Caras-Severin' , 'give' ),
543
		'CJ' => __( 'Cluj' , 'give' ),
544
		'CT' => __( 'Constanta' , 'give' ),
545
		'CV' => __( 'Covasna' , 'give' ),
546
		'DB' => __( 'Dambovita' , 'give' ),
547
		'DJ' => __( 'Dolj' , 'give' ),
548
		'GL' => __( 'Galati' , 'give' ),
549
		'GR' => __( 'Giurgiu' , 'give' ),
550
		'GJ' => __( 'Gorj' , 'give' ),
551
		'HR' => __( 'Harghita' , 'give' ),
552
		'HD' => __( 'Hunedoara' , 'give' ),
553
		'IL' => __( 'Ialomita' , 'give' ),
554
		'IS' => __( 'Iasi' , 'give' ),
555
		'IF' => __( 'Ilfov' , 'give' ),
556
		'MM' => __( 'Maramures' , 'give' ),
557
		'MH' => __( 'Mehedinti' , 'give' ),
558
		'MS' => __( 'Mures' , 'give' ),
559
		'NT' => __( 'Neamt' , 'give' ),
560
		'OT' => __( 'Olt' , 'give' ),
561
		'PH' => __( 'Prahova' , 'give' ),
562
		'SJ' => __( 'Salaj' , 'give' ),
563
		'SM' => __( 'Satu Mare' , 'give' ),
564
		'SB' => __( 'Sibiu' , 'give' ),
565
		'SV' => __( 'Suceava' , 'give' ),
566
		'TR' => __( 'Teleorman' , 'give' ),
567
		'TM' => __( 'Timis' , 'give' ),
568
		'TL' => __( 'Tulcea' , 'give' ),
569
		'VL' => __( 'Valcea' , 'give' ),
570
		'VS' => __( 'Vaslui' , 'give' ),
571
		'VN' => __( 'Vrancea' , 'give' ),
572
	);
573
	return apply_filters( 'give_romania_states', $states );
574
}
575
576
/**
577
 * Get Pakistan States
578
 *
579
 * @since 1.8.12
580
 * @return array $states A list of states
581
 */
582
function give_get_pakistan_states_list() {
583
	$states = array(
584
		''     => '',
585
		'JK' => __( 'Azad Kashmir', 'give' ),
586
		'BA' => __( 'Balochistan', 'give' ),
587
		'TA' => __( 'FATA', 'give' ),
588
		'GB' => __( 'Gilgit Baltistan', 'give' ),
589
		'IS' => __( 'Islamabad Capital Territory', 'give' ),
590
		'KP' => __( 'Khyber Pakhtunkhwa', 'give' ),
591
		'PB' => __( 'Punjab', 'give' ),
592
		'SD' => __( 'Sindh', 'give' ),
593
	);
594
	return apply_filters( 'give_pakistan_states', $states );
595
}
596
597
/**
598
 * Get Philippines States
599
 *
600
 * @since 1.8.12
601
 * @return array $states A list of states
602
 */
603
function give_get_philippines_states_list() {
604
	$states = array(
605
		''     => '',
606
		'ABR' => __( 'Abra', 'give' ),
607
		'AGN' => __( 'Agusan del Norte', 'give' ),
608
		'AGS' => __( 'Agusan del Sur', 'give' ),
609
		'AKL' => __( 'Aklan', 'give' ),
610
		'ALB' => __( 'Albay', 'give' ),
611
		'ANT' => __( 'Antique', 'give' ),
612
		'APA' => __( 'Apayao', 'give' ),
613
		'AUR' => __( 'Aurora', 'give' ),
614
		'BAS' => __( 'Basilan', 'give' ),
615
		'BAN' => __( 'Bataan', 'give' ),
616
		'BTN' => __( 'Batanes', 'give' ),
617
		'BTG' => __( 'Batangas', 'give' ),
618
		'BEN' => __( 'Benguet', 'give' ),
619
		'BIL' => __( 'Biliran', 'give' ),
620
		'BOH' => __( 'Bohol', 'give' ),
621
		'BUK' => __( 'Bukidnon', 'give' ),
622
		'BUL' => __( 'Bulacan', 'give' ),
623
		'CAG' => __( 'Cagayan', 'give' ),
624
		'CAN' => __( 'Camarines Norte', 'give' ),
625
		'CAS' => __( 'Camarines Sur', 'give' ),
626
		'CAM' => __( 'Camiguin', 'give' ),
627
		'CAP' => __( 'Capiz', 'give' ),
628
		'CAT' => __( 'Catanduanes', 'give' ),
629
		'CAV' => __( 'Cavite', 'give' ),
630
		'CEB' => __( 'Cebu', 'give' ),
631
		'COM' => __( 'Compostela Valley', 'give' ),
632
		'NCO' => __( 'Cotabato', 'give' ),
633
		'DAV' => __( 'Davao del Norte', 'give' ),
634
		'DAS' => __( 'Davao del Sur', 'give' ),
635
		'DAC' => __( 'Davao Occidental', 'give' ), // TODO: Needs to be updated when ISO code is assigned
636
		'DAO' => __( 'Davao Oriental', 'give' ),
637
		'DIN' => __( 'Dinagat Islands', 'give' ),
638
		'EAS' => __( 'Eastern Samar', 'give' ),
639
		'GUI' => __( 'Guimaras', 'give' ),
640
		'IFU' => __( 'Ifugao', 'give' ),
641
		'ILN' => __( 'Ilocos Norte', 'give' ),
642
		'ILS' => __( 'Ilocos Sur', 'give' ),
643
		'ILI' => __( 'Iloilo', 'give' ),
644
		'ISA' => __( 'Isabela', 'give' ),
645
		'KAL' => __( 'Kalinga', 'give' ),
646
		'LUN' => __( 'La Union', 'give' ),
647
		'LAG' => __( 'Laguna', 'give' ),
648
		'LAN' => __( 'Lanao del Norte', 'give' ),
649
		'LAS' => __( 'Lanao del Sur', 'give' ),
650
		'LEY' => __( 'Leyte', 'give' ),
651
		'MAG' => __( 'Maguindanao', 'give' ),
652
		'MAD' => __( 'Marinduque', 'give' ),
653
		'MAS' => __( 'Masbate', 'give' ),
654
		'MSC' => __( 'Misamis Occidental', 'give' ),
655
		'MSR' => __( 'Misamis Oriental', 'give' ),
656
		'MOU' => __( 'Mountain Province', 'give' ),
657
		'NEC' => __( 'Negros Occidental', 'give' ),
658
		'NER' => __( 'Negros Oriental', 'give' ),
659
		'NSA' => __( 'Northern Samar', 'give' ),
660
		'NUE' => __( 'Nueva Ecija', 'give' ),
661
		'NUV' => __( 'Nueva Vizcaya', 'give' ),
662
		'MDC' => __( 'Occidental Mindoro', 'give' ),
663
		'MDR' => __( 'Oriental Mindoro', 'give' ),
664
		'PLW' => __( 'Palawan', 'give' ),
665
		'PAM' => __( 'Pampanga', 'give' ),
666
		'PAN' => __( 'Pangasinan', 'give' ),
667
		'QUE' => __( 'Quezon', 'give' ),
668
		'QUI' => __( 'Quirino', 'give' ),
669
		'RIZ' => __( 'Rizal', 'give' ),
670
		'ROM' => __( 'Romblon', 'give' ),
671
		'WSA' => __( 'Samar', 'give' ),
672
		'SAR' => __( 'Sarangani', 'give' ),
673
		'SIQ' => __( 'Siquijor', 'give' ),
674
		'SOR' => __( 'Sorsogon', 'give' ),
675
		'SCO' => __( 'South Cotabato', 'give' ),
676
		'SLE' => __( 'Southern Leyte', 'give' ),
677
		'SUK' => __( 'Sultan Kudarat', 'give' ),
678
		'SLU' => __( 'Sulu', 'give' ),
679
		'SUN' => __( 'Surigao del Norte', 'give' ),
680
		'SUR' => __( 'Surigao del Sur', 'give' ),
681
		'TAR' => __( 'Tarlac', 'give' ),
682
		'TAW' => __( 'Tawi-Tawi', 'give' ),
683
		'ZMB' => __( 'Zambales', 'give' ),
684
		'ZAN' => __( 'Zamboanga del Norte', 'give' ),
685
		'ZAS' => __( 'Zamboanga del Sur', 'give' ),
686
		'ZSI' => __( 'Zamboanga Sibugay', 'give' ),
687
		'00'  => __( 'Metro Manila', 'give' ),
688
	);
689
	return apply_filters( 'give_philippines_states', $states );
690
}
691
692
/**
693
 * Get Peru States
694
 *
695
 * @since 1.8.12
696
 * @return array $states A list of states
697
 */
698
function give_get_peru_states_list() {
699
	$states = array(
700
		''     => '',
701
		'CAL' => __( 'El Callao', 'give' ),
702
		'LMA' => __( 'Municipalidad Metropolitana de Lima', 'give' ),
703
		'AMA' => __( 'Amazonas', 'give' ),
704
		'ANC' => __( 'Ancash', 'give' ),
705
		'APU' => __( 'Apur&iacute;mac', 'give' ),
706
		'ARE' => __( 'Arequipa', 'give' ),
707
		'AYA' => __( 'Ayacucho', 'give' ),
708
		'CAJ' => __( 'Cajamarca', 'give' ),
709
		'CUS' => __( 'Cusco', 'give' ),
710
		'HUV' => __( 'Huancavelica', 'give' ),
711
		'HUC' => __( 'Hu&aacute;nuco', 'give' ),
712
		'ICA' => __( 'Ica', 'give' ),
713
		'JUN' => __( 'Jun&iacute;n', 'give' ),
714
		'LAL' => __( 'La Libertad', 'give' ),
715
		'LAM' => __( 'Lambayeque', 'give' ),
716
		'LIM' => __( 'Lima', 'give' ),
717
		'LOR' => __( 'Loreto', 'give' ),
718
		'MDD' => __( 'Madre de Dios', 'give' ),
719
		'MOQ' => __( 'Moquegua', 'give' ),
720
		'PAS' => __( 'Pasco', 'give' ),
721
		'PIU' => __( 'Piura', 'give' ),
722
		'PUN' => __( 'Puno', 'give' ),
723
		'SAM' => __( 'San Mart&iacute;n', 'give' ),
724
		'TAC' => __( 'Tacna', 'give' ),
725
		'TUM' => __( 'Tumbes', 'give' ),
726
		'UCA' => __( 'Ucayali', 'give' ),
727
	);
728
	return apply_filters( 'give_peru_states', $states );
729
}
730
731
/**
732
 * Get Nepal States
733
 *
734
 * @since 1.8.12
735
 * @return array $states A list of states
736
 */
737
function give_get_nepal_states_list() {
738
	$states = array(
739
		''     => '',
740
		'BAG' => __( 'Bagmati', 'give' ),
741
		'BHE' => __( 'Bheri', 'give' ),
742
		'DHA' => __( 'Dhaulagiri', 'give' ),
743
		'GAN' => __( 'Gandaki', 'give' ),
744
		'JAN' => __( 'Janakpur', 'give' ),
745
		'KAR' => __( 'Karnali', 'give' ),
746
		'KOS' => __( 'Koshi', 'give' ),
747
		'LUM' => __( 'Lumbini', 'give' ),
748
		'MAH' => __( 'Mahakali', 'give' ),
749
		'MEC' => __( 'Mechi', 'give' ),
750
		'NAR' => __( 'Narayani', 'give' ),
751
		'RAP' => __( 'Rapti', 'give' ),
752
		'SAG' => __( 'Sagarmatha', 'give' ),
753
		'SET' => __( 'Seti', 'give' ),
754
	);
755
	return apply_filters( 'give_nepal_states', $states );
756
}
757
758
/**
759
 * Get Nigerian States
760
 *
761
 * @since 1.8.12
762
 * @return array $states A list of states
763
 */
764
function give_get_nigerian_states_list() {
765
	$states = array(
766
		''     => '',
767
		'AB' => __( 'Abia', 'give' ),
768
		'FC' => __( 'Abuja', 'give' ),
769
		'AD' => __( 'Adamawa', 'give' ),
770
		'AK' => __( 'Akwa Ibom', 'give' ),
771
		'AN' => __( 'Anambra', 'give' ),
772
		'BA' => __( 'Bauchi', 'give' ),
773
		'BY' => __( 'Bayelsa', 'give' ),
774
		'BE' => __( 'Benue', 'give' ),
775
		'BO' => __( 'Borno', 'give' ),
776
		'CR' => __( 'Cross River', 'give' ),
777
		'DE' => __( 'Delta', 'give' ),
778
		'EB' => __( 'Ebonyi', 'give' ),
779
		'ED' => __( 'Edo', 'give' ),
780
		'EK' => __( 'Ekiti', 'give' ),
781
		'EN' => __( 'Enugu', 'give' ),
782
		'GO' => __( 'Gombe', 'give' ),
783
		'IM' => __( 'Imo', 'give' ),
784
		'JI' => __( 'Jigawa', 'give' ),
785
		'KD' => __( 'Kaduna', 'give' ),
786
		'KN' => __( 'Kano', 'give' ),
787
		'KT' => __( 'Katsina', 'give' ),
788
		'KE' => __( 'Kebbi', 'give' ),
789
		'KO' => __( 'Kogi', 'give' ),
790
		'KW' => __( 'Kwara', 'give' ),
791
		'LA' => __( 'Lagos', 'give' ),
792
		'NA' => __( 'Nasarawa', 'give' ),
793
		'NI' => __( 'Niger', 'give' ),
794
		'OG' => __( 'Ogun', 'give' ),
795
		'ON' => __( 'Ondo', 'give' ),
796
		'OS' => __( 'Osun', 'give' ),
797
		'OY' => __( 'Oyo', 'give' ),
798
		'PL' => __( 'Plateau', 'give' ),
799
		'RI' => __( 'Rivers', 'give' ),
800
		'SO' => __( 'Sokoto', 'give' ),
801
		'TA' => __( 'Taraba', 'give' ),
802
		'YO' => __( 'Yobe', 'give' ),
803
		'ZA' => __( 'Zamfara', 'give' ),
804
	);
805
	return apply_filters( 'give_nigerian_states', $states );
806
}
807
808
/**
809
 * Get Mexico States
810
 *
811
 * @since 1.8.12
812
 * @return array $states A list of states
813
 */
814
function give_get_mexico_states_list() {
815
	$states = array(
816
		''                      => '',
817
		'Distrito Federal' 		=> __( 'Distrito Federal', 'give' ),
818
		'Jalisco' 				=> __( 'Jalisco', 'give' ),
819
		'Nuevo Leon' 			=> __( 'Nuevo León', 'give' ),
820
		'Aguascalientes' 		=> __( 'Aguascalientes', 'give' ),
821
		'Baja California' 		=> __( 'Baja California', 'give' ),
822
		'Baja California Sur' 	=> __( 'Baja California Sur', 'give' ),
823
		'Campeche' 				=> __( 'Campeche', 'give' ),
824
		'Chiapas' 				=> __( 'Chiapas', 'give' ),
825
		'Chihuahua' 			=> __( 'Chihuahua', 'give' ),
826
		'Coahuila' 				=> __( 'Coahuila', 'give' ),
827
		'Colima' 				=> __( 'Colima', 'give' ),
828
		'Durango' 				=> __( 'Durango', 'give' ),
829
		'Guanajuato' 			=> __( 'Guanajuato', 'give' ),
830
		'Guerrero' 				=> __( 'Guerrero', 'give' ),
831
		'Hidalgo' 				=> __( 'Hidalgo', 'give' ),
832
		'Estado de Mexico' 		=> __( 'Edo. de México', 'give' ),
833
		'Michoacan' 			=> __( 'Michoacán', 'give' ),
834
		'Morelos' 				=> __( 'Morelos', 'give' ),
835
		'Nayarit' 				=> __( 'Nayarit', 'give' ),
836
		'Oaxaca' 				=> __( 'Oaxaca', 'give' ),
837
		'Puebla' 				=> __( 'Puebla', 'give' ),
838
		'Queretaro' 			=> __( 'Querétaro', 'give' ),
839
		'Quintana Roo' 			=> __( 'Quintana Roo', 'give' ),
840
		'San Luis Potosi' 		=> __( 'San Luis Potosí', 'give' ),
841
		'Sinaloa' 				=> __( 'Sinaloa', 'give' ),
842
		'Sonora' 				=> __( 'Sonora', 'give' ),
843
		'Tabasco' 				=> __( 'Tabasco', 'give' ),
844
		'Tamaulipas' 			=> __( 'Tamaulipas', 'give' ),
845
		'Tlaxcala' 				=> __( 'Tlaxcala', 'give' ),
846
		'Veracruz' 				=> __( 'Veracruz', 'give' ),
847
		'Yucatan' 				=> __( 'Yucatán', 'give' ),
848
		'Zacatecas' 			=> __( 'Zacatecas', 'give' ),
849
	);
850
	return apply_filters( 'give_mexico_states', $states );
851
}
852
853
/**
854
 * Get Japan States
855
 *
856
 * @since 1.8.12
857
 * @return array $states A list of states
858
 */
859
function give_get_japan_states_list() {
860
	$states = array(
861
		''     => '',
862
		'JP01' => __( 'Hokkaido', 'give' ),
863
		'JP02' => __( 'Aomori', 'give' ),
864
		'JP03' => __( 'Iwate', 'give' ),
865
		'JP04' => __( 'Miyagi', 'give' ),
866
		'JP05' => __( 'Akita', 'give' ),
867
		'JP06' => __( 'Yamagata', 'give' ),
868
		'JP07' => __( 'Fukushima', 'give' ),
869
		'JP08' => __( 'Ibaraki', 'give' ),
870
		'JP09' => __( 'Tochigi', 'give' ),
871
		'JP10' => __( 'Gunma', 'give' ),
872
		'JP11' => __( 'Saitama', 'give' ),
873
		'JP12' => __( 'Chiba', 'give' ),
874
		'JP13' => __( 'Tokyo', 'give' ),
875
		'JP14' => __( 'Kanagawa', 'give' ),
876
		'JP15' => __( 'Niigata', 'give' ),
877
		'JP16' => __( 'Toyama', 'give' ),
878
		'JP17' => __( 'Ishikawa', 'give' ),
879
		'JP18' => __( 'Fukui', 'give' ),
880
		'JP19' => __( 'Yamanashi', 'give' ),
881
		'JP20' => __( 'Nagano', 'give' ),
882
		'JP21' => __( 'Gifu', 'give' ),
883
		'JP22' => __( 'Shizuoka', 'give' ),
884
		'JP23' => __( 'Aichi', 'give' ),
885
		'JP24' => __( 'Mie', 'give' ),
886
		'JP25' => __( 'Shiga', 'give' ),
887
		'JP26' => __( 'Kyoto', 'give' ),
888
		'JP27' => __( 'Osaka', 'give' ),
889
		'JP28' => __( 'Hyogo', 'give' ),
890
		'JP29' => __( 'Nara', 'give' ),
891
		'JP30' => __( 'Wakayama', 'give' ),
892
		'JP31' => __( 'Tottori', 'give' ),
893
		'JP32' => __( 'Shimane', 'give' ),
894
		'JP33' => __( 'Okayama', 'give' ),
895
		'JP34' => __( 'Hiroshima', 'give' ),
896
		'JP35' => __( 'Yamaguchi', 'give' ),
897
		'JP36' => __( 'Tokushima', 'give' ),
898
		'JP37' => __( 'Kagawa', 'give' ),
899
		'JP38' => __( 'Ehime', 'give' ),
900
		'JP39' => __( 'Kochi', 'give' ),
901
		'JP40' => __( 'Fukuoka', 'give' ),
902
		'JP41' => __( 'Saga', 'give' ),
903
		'JP42' => __( 'Nagasaki', 'give' ),
904
		'JP43' => __( 'Kumamoto', 'give' ),
905
		'JP44' => __( 'Oita', 'give' ),
906
		'JP45' => __( 'Miyazaki', 'give' ),
907
		'JP46' => __( 'Kagoshima', 'give' ),
908
		'JP47' => __( 'Okinawa', 'give' ),
909
	);
910
	return apply_filters( 'give_japan_states', $states );
911
}
912
913
/**
914
 * Get Italy States
915
 *
916
 * @since 1.8.12
917
 * @return array $states A list of states
918
 */
919
function give_get_italy_states_list() {
920
	$states = array(
921
		''     => '',
922
		'AG' => __( 'Agrigento', 'give' ),
923
		'AL' => __( 'Alessandria', 'give' ),
924
		'AN' => __( 'Ancona', 'give' ),
925
		'AO' => __( 'Aosta', 'give' ),
926
		'AR' => __( 'Arezzo', 'give' ),
927
		'AP' => __( 'Ascoli Piceno', 'give' ),
928
		'AT' => __( 'Asti', 'give' ),
929
		'AV' => __( 'Avellino', 'give' ),
930
		'BA' => __( 'Bari', 'give' ),
931
		'BT' => __( 'Barletta-Andria-Trani', 'give' ),
932
		'BL' => __( 'Belluno', 'give' ),
933
		'BN' => __( 'Benevento', 'give' ),
934
		'BG' => __( 'Bergamo', 'give' ),
935
		'BI' => __( 'Biella', 'give' ),
936
		'BO' => __( 'Bologna', 'give' ),
937
		'BZ' => __( 'Bolzano', 'give' ),
938
		'BS' => __( 'Brescia', 'give' ),
939
		'BR' => __( 'Brindisi', 'give' ),
940
		'CA' => __( 'Cagliari', 'give' ),
941
		'CL' => __( 'Caltanissetta', 'give' ),
942
		'CB' => __( 'Campobasso', 'give' ),
943
		'CI' => __( 'Carbonia-Iglesias', 'give' ),
944
		'CE' => __( 'Caserta', 'give' ),
945
		'CT' => __( 'Catania', 'give' ),
946
		'CZ' => __( 'Catanzaro', 'give' ),
947
		'CH' => __( 'Chieti', 'give' ),
948
		'CO' => __( 'Como', 'give' ),
949
		'CS' => __( 'Cosenza', 'give' ),
950
		'CR' => __( 'Cremona', 'give' ),
951
		'KR' => __( 'Crotone', 'give' ),
952
		'CN' => __( 'Cuneo', 'give' ),
953
		'EN' => __( 'Enna', 'give' ),
954
		'FM' => __( 'Fermo', 'give' ),
955
		'FE' => __( 'Ferrara', 'give' ),
956
		'FI' => __( 'Firenze', 'give' ),
957
		'FG' => __( 'Foggia', 'give' ),
958
		'FC' => __( 'Forlì-Cesena', 'give' ),
959
		'FR' => __( 'Frosinone', 'give' ),
960
		'GE' => __( 'Genova', 'give' ),
961
		'GO' => __( 'Gorizia', 'give' ),
962
		'GR' => __( 'Grosseto', 'give' ),
963
		'IM' => __( 'Imperia', 'give' ),
964
		'IS' => __( 'Isernia', 'give' ),
965
		'SP' => __( 'La Spezia', 'give' ),
966
		'AQ' => __( "L'Aquila", 'give' ),
967
		'LT' => __( 'Latina', 'give' ),
968
		'LE' => __( 'Lecce', 'give' ),
969
		'LC' => __( 'Lecco', 'give' ),
970
		'LI' => __( 'Livorno', 'give' ),
971
		'LO' => __( 'Lodi', 'give' ),
972
		'LU' => __( 'Lucca', 'give' ),
973
		'MC' => __( 'Macerata', 'give' ),
974
		'MN' => __( 'Mantova', 'give' ),
975
		'MS' => __( 'Massa-Carrara', 'give' ),
976
		'MT' => __( 'Matera', 'give' ),
977
		'ME' => __( 'Messina', 'give' ),
978
		'MI' => __( 'Milano', 'give' ),
979
		'MO' => __( 'Modena', 'give' ),
980
		'MB' => __( 'Monza e della Brianza', 'give' ),
981
		'NA' => __( 'Napoli', 'give' ),
982
		'NO' => __( 'Novara', 'give' ),
983
		'NU' => __( 'Nuoro', 'give' ),
984
		'OT' => __( 'Olbia-Tempio', 'give' ),
985
		'OR' => __( 'Oristano', 'give' ),
986
		'PD' => __( 'Padova', 'give' ),
987
		'PA' => __( 'Palermo', 'give' ),
988
		'PR' => __( 'Parma', 'give' ),
989
		'PV' => __( 'Pavia', 'give' ),
990
		'PG' => __( 'Perugia', 'give' ),
991
		'PU' => __( 'Pesaro e Urbino', 'give' ),
992
		'PE' => __( 'Pescara', 'give' ),
993
		'PC' => __( 'Piacenza', 'give' ),
994
		'PI' => __( 'Pisa', 'give' ),
995
		'PT' => __( 'Pistoia', 'give' ),
996
		'PN' => __( 'Pordenone', 'give' ),
997
		'PZ' => __( 'Potenza', 'give' ),
998
		'PO' => __( 'Prato', 'give' ),
999
		'RG' => __( 'Ragusa', 'give' ),
1000
		'RA' => __( 'Ravenna', 'give' ),
1001
		'RC' => __( 'Reggio Calabria', 'give' ),
1002
		'RE' => __( 'Reggio Emilia', 'give' ),
1003
		'RI' => __( 'Rieti', 'give' ),
1004
		'RN' => __( 'Rimini', 'give' ),
1005
		'RM' => __( 'Roma', 'give' ),
1006
		'RO' => __( 'Rovigo', 'give' ),
1007
		'SA' => __( 'Salerno', 'give' ),
1008
		'VS' => __( 'Medio Campidano', 'give' ),
1009
		'SS' => __( 'Sassari', 'give' ),
1010
		'SV' => __( 'Savona', 'give' ),
1011
		'SI' => __( 'Siena', 'give' ),
1012
		'SR' => __( 'Siracusa', 'give' ),
1013
		'SO' => __( 'Sondrio', 'give' ),
1014
		'TA' => __( 'Taranto', 'give' ),
1015
		'TE' => __( 'Teramo', 'give' ),
1016
		'TR' => __( 'Terni', 'give' ),
1017
		'TO' => __( 'Torino', 'give' ),
1018
		'OG' => __( 'Ogliastra', 'give' ),
1019
		'TP' => __( 'Trapani', 'give' ),
1020
		'TN' => __( 'Trento', 'give' ),
1021
		'TV' => __( 'Treviso', 'give' ),
1022
		'TS' => __( 'Trieste', 'give' ),
1023
		'UD' => __( 'Udine', 'give' ),
1024
		'VA' => __( 'Varese', 'give' ),
1025
		'VE' => __( 'Venezia', 'give' ),
1026
		'VB' => __( 'Verbano-Cusio-Ossola', 'give' ),
1027
		'VC' => __( 'Vercelli', 'give' ),
1028
		'VR' => __( 'Verona', 'give' ),
1029
		'VV' => __( 'Vibo Valentia', 'give' ),
1030
		'VI' => __( 'Vicenza', 'give' ),
1031
		'VT' => __( 'Viterbo', 'give' ),
1032
	);
1033
	return apply_filters( 'give_italy_states', $states );
1034
}
1035
1036
/**
1037
 * Get Iran States
1038
 *
1039
 * @since 1.8.12
1040
 * @return array $states A list of states
1041
 */
1042
function give_get_iran_states_list() {
1043
	$states = array(
1044
		''     => '',
1045
		'KHZ' => __( 'Khuzestan  (خوزستان)', 'give' ),
1046
		'THR' => __( 'Tehran  (تهران)', 'give' ),
1047
		'ILM' => __( 'Ilaam (ایلام)', 'give' ),
1048
		'BHR' => __( 'Bushehr (بوشهر)', 'give' ),
1049
		'ADL' => __( 'Ardabil (اردبیل)', 'give' ),
1050
		'ESF' => __( 'Isfahan (اصفهان)', 'give' ),
1051
		'YZD' => __( 'Yazd (یزد)', 'give' ),
1052
		'KRH' => __( 'Kermanshah (کرمانشاه)', 'give' ),
1053
		'KRN' => __( 'Kerman (کرمان)', 'give' ),
1054
		'HDN' => __( 'Hamadan (همدان)', 'give' ),
1055
		'GZN' => __( 'Ghazvin (قزوین)', 'give' ),
1056
		'ZJN' => __( 'Zanjan (زنجان)', 'give' ),
1057
		'LRS' => __( 'Luristan (لرستان)', 'give' ),
1058
		'ABZ' => __( 'Alborz (البرز)', 'give' ),
1059
		'EAZ' => __( 'East Azarbaijan (آذربایجان شرقی)', 'give' ),
1060
		'WAZ' => __( 'West Azarbaijan (آذربایجان غربی)', 'give' ),
1061
		'CHB' => __( 'Chaharmahal and Bakhtiari (چهارمحال و بختیاری)', 'give' ),
1062
		'SKH' => __( 'South Khorasan (خراسان جنوبی)', 'give' ),
1063
		'RKH' => __( 'Razavi Khorasan (خراسان رضوی)', 'give' ),
1064
		'NKH' => __( 'North Khorasan (خراسان جنوبی)', 'give' ),
1065
		'SMN' => __( 'Semnan (سمنان)', 'give' ),
1066
		'FRS' => __( 'Fars (فارس)', 'give' ),
1067
		'QHM' => __( 'Qom (قم)', 'give' ),
1068
		'KRD' => __( 'Kurdistan / کردستان)', 'give' ),
1069
		'KBD' => __( 'Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)', 'give' ),
1070
		'GLS' => __( 'Golestan (گلستان)', 'give' ),
1071
		'GIL' => __( 'Gilan (گیلان)', 'give' ),
1072
		'MZN' => __( 'Mazandaran (مازندران)', 'give' ),
1073
		'MKZ' => __( 'Markazi (مرکزی)', 'give' ),
1074
		'HRZ' => __( 'Hormozgan (هرمزگان)', 'give' ),
1075
		'SBN' => __( 'Sistan and Baluchestan (سیستان و بلوچستان)', 'give' ),
1076
	);
1077
	return apply_filters( 'give_iran_states', $states );
1078
}
1079
1080
/**
1081
 * Get Ireland States
1082
 *
1083
 * @since 1.8.12
1084
 * @return array $states A list of states
1085
 */
1086
function give_get_ireland_states_list() {
1087
	$states = array(
1088
		''     => '',
1089
		'CE' => __( 'Clare', 'give' ),
1090
		'CK' => __( 'Cork', 'give' ),
1091
		'CN' => __( 'Cavan', 'give' ),
1092
		'CW' => __( 'Carlow', 'give' ),
1093
		'DL' => __( 'Donegal', 'give' ),
1094
		'DN' => __( 'Dublin', 'give' ),
1095
		'GY' => __( 'Galway', 'give' ),
1096
		'KE' => __( 'Kildare', 'give' ),
1097
		'KK' => __( 'Kilkenny', 'give' ),
1098
		'KY' => __( 'Kerry', 'give' ),
1099
		'LD' => __( 'Longford', 'give' ),
1100
		'LH' => __( 'Louth', 'give' ),
1101
		'LK' => __( 'Limerick', 'give' ),
1102
		'LM' => __( 'Leitrim', 'give' ),
1103
		'LS' => __( 'Laois', 'give' ),
1104
		'MH' => __( 'Meath', 'give' ),
1105
		'MN' => __( 'Monaghan', 'give' ),
1106
		'MO' => __( 'Mayo', 'give' ),
1107
		'OY' => __( 'Offaly', 'give' ),
1108
		'RN' => __( 'Roscommon', 'give' ),
1109
		'SO' => __( 'Sligo', 'give' ),
1110
		'TY' => __( 'Tipperary', 'give' ),
1111
		'WD' => __( 'Waterford', 'give' ),
1112
		'WH' => __( 'Westmeath', 'give' ),
1113
		'WW' => __( 'Wicklow', 'give' ),
1114
		'WX' => __( 'Wexford', 'give' ),
1115
	);
1116
	return apply_filters( 'give_ireland_states', $states );
1117
}
1118
1119
/**
1120
 * Get Greek States
1121
 *
1122
 * @since 1.8.12
1123
 * @return array $states A list of states
1124
 */
1125
function give_get_greek_states_list() {
1126
	$states = array(
1127
		''     => '',
1128
		'I' => __( 'Αττική', 'give' ),
1129
		'A' => __( 'Ανατολική Μακεδονία και Θράκη', 'give' ),
1130
		'B' => __( 'Κεντρική Μακεδονία', 'give' ),
1131
		'C' => __( 'Δυτική Μακεδονία', 'give' ),
1132
		'D' => __( 'Ήπειρος', 'give' ),
1133
		'E' => __( 'Θεσσαλία', 'give' ),
1134
		'F' => __( 'Ιόνιοι Νήσοι', 'give' ),
1135
		'G' => __( 'Δυτική Ελλάδα', 'give' ),
1136
		'H' => __( 'Στερεά Ελλάδα', 'give' ),
1137
		'J' => __( 'Πελοπόννησος', 'give' ),
1138
		'K' => __( 'Βόρειο Αιγαίο', 'give' ),
1139
		'L' => __( 'Νότιο Αιγαίο', 'give' ),
1140
		'M' => __( 'Κρήτη', 'give' ),
1141
	);
1142
	return apply_filters( 'give_greek_states', $states );
1143
}
1144
1145
/**
1146
 * Get bolivian States
1147
 *
1148
 * @since 1.8.12
1149
 * @return array $states A list of states
1150
 */
1151
function give_get_bolivian_states_list() {
1152
	$states = array(
1153
		''     => '',
1154
		'B' => __( 'Chuquisaca', 'give' ),
1155
		'H' => __( 'Beni', 'give' ),
1156
		'C' => __( 'Cochabamba', 'give' ),
1157
		'L' => __( 'La Paz', 'give' ),
1158
		'O' => __( 'Oruro', 'give' ),
1159
		'N' => __( 'Pando', 'give' ),
1160
		'P' => __( 'Potosí', 'give' ),
1161
		'S' => __( 'Santa Cruz', 'give' ),
1162
		'T' => __( 'Tarija', 'give' ),
1163
	);
1164
	return apply_filters( 'give_bolivian_states', $states );
1165
}
1166
1167
/**
1168
 * Get Bulgarian States
1169
 *
1170
 * @since 1.8.12
1171
 * @return array $states A list of states
1172
 */
1173
function give_get_bulgarian_states_list() {
1174
	$states = array(
1175
		''     => '',
1176
		'BG-01' => __( 'Blagoevgrad', 'give' ),
1177
		'BG-02' => __( 'Burgas', 'give' ),
1178
		'BG-08' => __( 'Dobrich', 'give' ),
1179
		'BG-07' => __( 'Gabrovo', 'give' ),
1180
		'BG-26' => __( 'Haskovo', 'give' ),
1181
		'BG-09' => __( 'Kardzhali', 'give' ),
1182
		'BG-10' => __( 'Kyustendil', 'give' ),
1183
		'BG-11' => __( 'Lovech', 'give' ),
1184
		'BG-12' => __( 'Montana', 'give' ),
1185
		'BG-13' => __( 'Pazardzhik', 'give' ),
1186
		'BG-14' => __( 'Pernik', 'give' ),
1187
		'BG-15' => __( 'Pleven', 'give' ),
1188
		'BG-16' => __( 'Plovdiv', 'give' ),
1189
		'BG-17' => __( 'Razgrad', 'give' ),
1190
		'BG-18' => __( 'Ruse', 'give' ),
1191
		'BG-27' => __( 'Shumen', 'give' ),
1192
		'BG-19' => __( 'Silistra', 'give' ),
1193
		'BG-20' => __( 'Sliven', 'give' ),
1194
		'BG-21' => __( 'Smolyan', 'give' ),
1195
		'BG-23' => __( 'Sofia', 'give' ),
1196
		'BG-22' => __( 'Sofia-Grad', 'give' ),
1197
		'BG-24' => __( 'Stara Zagora', 'give' ),
1198
		'BG-25' => __( 'Targovishte', 'give' ),
1199
		'BG-03' => __( 'Varna', 'give' ),
1200
		'BG-04' => __( 'Veliko Tarnovo', 'give' ),
1201
		'BG-05' => __( 'Vidin', 'give' ),
1202
		'BG-06' => __( 'Vratsa', 'give' ),
1203
		'BG-28' => __( 'Yambol', 'give' ),
1204
	);
1205
	return apply_filters( 'give_bulgarian_states', $states );
1206
}
1207
1208
/**
1209
 * Get Bangladeshi States
1210
 *
1211
 * @since 1.8.12.
1212
 * @return array $states A list of states
1213
 */
1214
function give_get_bangladeshi_states_list() {
1215
	$states = array(
1216
		''	=> '',
1217
		'BAG'  => __( 'Bagerhat', 'give' ),
1218
		'BAN'  => __( 'Bandarban', 'give' ),
1219
		'BAR'  => __( 'Barguna', 'give' ),
1220
		'BARI' => __( 'Barisal', 'give' ),
1221
		'BHO'  => __( 'Bhola', 'give' ),
1222
		'BOG'  => __( 'Bogra', 'give' ),
1223
		'BRA'  => __( 'Brahmanbaria', 'give' ),
1224
		'CHA'  => __( 'Chandpur', 'give' ),
1225
		'CHI'  => __( 'Chittagong', 'give' ),
1226
		'CHU'  => __( 'Chuadanga', 'give' ),
1227
		'COM'  => __( 'Comilla', 'give' ),
1228
		'COX'  => __( "Cox's Bazar", 'give' ),
1229
		'DHA'  => __( 'Dhaka', 'give' ),
1230
		'DIN'  => __( 'Dinajpur', 'give' ),
1231
		'FAR'  => __( 'Faridpur ', 'give' ),
1232
		'FEN'  => __( 'Feni', 'give' ),
1233
		'GAI'  => __( 'Gaibandha', 'give' ),
1234
		'GAZI' => __( 'Gazipur', 'give' ),
1235
		'GOP'  => __( 'Gopalganj', 'give' ),
1236
		'HAB'  => __( 'Habiganj', 'give' ),
1237
		'JAM'  => __( 'Jamalpur', 'give' ),
1238
		'JES'  => __( 'Jessore', 'give' ),
1239
		'JHA'  => __( 'Jhalokati', 'give' ),
1240
		'JHE'  => __( 'Jhenaidah', 'give' ),
1241
		'JOY'  => __( 'Joypurhat', 'give' ),
1242
		'KHA'  => __( 'Khagrachhari', 'give' ),
1243
		'KHU'  => __( 'Khulna', 'give' ),
1244
		'KIS'  => __( 'Kishoreganj', 'give' ),
1245
		'KUR'  => __( 'Kurigram', 'give' ),
1246
		'KUS'  => __( 'Kushtia', 'give' ),
1247
		'LAK'  => __( 'Lakshmipur', 'give' ),
1248
		'LAL'  => __( 'Lalmonirhat', 'give' ),
1249
		'MAD'  => __( 'Madaripur', 'give' ),
1250
		'MAG'  => __( 'Magura', 'give' ),
1251
		'MAN'  => __( 'Manikganj ', 'give' ),
1252
		'MEH'  => __( 'Meherpur', 'give' ),
1253
		'MOU'  => __( 'Moulvibazar', 'give' ),
1254
		'MUN'  => __( 'Munshiganj', 'give' ),
1255
		'MYM'  => __( 'Mymensingh', 'give' ),
1256
		'NAO'  => __( 'Naogaon', 'give' ),
1257
		'NAR'  => __( 'Narail', 'give' ),
1258
		'NARG' => __( 'Narayanganj', 'give' ),
1259
		'NARD' => __( 'Narsingdi', 'give' ),
1260
		'NAT'  => __( 'Natore', 'give' ),
1261
		'NAW'  => __( 'Nawabganj', 'give' ),
1262
		'NET'  => __( 'Netrakona', 'give' ),
1263
		'NIL'  => __( 'Nilphamari', 'give' ),
1264
		'NOA'  => __( 'Noakhali', 'give' ),
1265
		'PAB'  => __( 'Pabna', 'give' ),
1266
		'PAN'  => __( 'Panchagarh', 'give' ),
1267
		'PAT'  => __( 'Patuakhali', 'give' ),
1268
		'PIR'  => __( 'Pirojpur', 'give' ),
1269
		'RAJB' => __( 'Rajbari', 'give' ),
1270
		'RAJ'  => __( 'Rajshahi', 'give' ),
1271
		'RAN'  => __( 'Rangamati', 'give' ),
1272
		'RANP' => __( 'Rangpur', 'give' ),
1273
		'SAT'  => __( 'Satkhira', 'give' ),
1274
		'SHA'  => __( 'Shariatpur', 'give' ),
1275
		'SHE'  => __( 'Sherpur', 'give' ),
1276
		'SIR'  => __( 'Sirajganj', 'give' ),
1277
		'SUN'  => __( 'Sunamganj', 'give' ),
1278
		'SYL'  => __( 'Sylhet', 'give' ),
1279
		'TAN'  => __( 'Tangail', 'give' ),
1280
		'THA'  => __( 'Thakurgaon', 'give' ),
1281
	);
1282
	return apply_filters( 'give_bangladeshi_states', $states );
1283
}
1284
1285
/**
1286
 * Get Argentina States
1287
 *
1288
 * @since 1.8.12
1289
 * @return array $states A list of states
1290
 */
1291
function give_get_argentina_states_list() {
1292
	$states = array(
1293
		''  => '',
1294
		'C' => __( 'Ciudad Aut&oacute;noma de Buenos Aires', 'give' ),
1295
		'B' => __( 'Buenos Aires', 'give' ),
1296
		'K' => __( 'Catamarca', 'give' ),
1297
		'H' => __( 'Chaco', 'give' ),
1298
		'U' => __( 'Chubut', 'give' ),
1299
		'X' => __( 'C&oacute;rdoba', 'give' ),
1300
		'W' => __( 'Corrientes', 'give' ),
1301
		'E' => __( 'Entre R&iacute;os', 'give' ),
1302
		'P' => __( 'Formosa', 'give' ),
1303
		'Y' => __( 'Jujuy', 'give' ),
1304
		'L' => __( 'La Pampa', 'give' ),
1305
		'F' => __( 'La Rioja', 'give' ),
1306
		'M' => __( 'Mendoza', 'give' ),
1307
		'N' => __( 'Misiones', 'give' ),
1308
		'Q' => __( 'Neuqu&eacute;n', 'give' ),
1309
		'R' => __( 'R&iacute;o Negro', 'give' ),
1310
		'A' => __( 'Salta', 'give' ),
1311
		'J' => __( 'San Juan', 'give' ),
1312
		'D' => __( 'San Luis', 'give' ),
1313
		'Z' => __( 'Santa Cruz', 'give' ),
1314
		'S' => __( 'Santa Fe', 'give' ),
1315
		'G' => __( 'Santiago del Estero', 'give' ),
1316
		'V' => __( 'Tierra del Fuego', 'give' ),
1317
		'T' => __( 'Tucum&aacute;n', 'give' ),
1318
	);
1319
	return apply_filters( 'give_argentina_states', $states );
1320
}
1321
1322
/**
1323
 * Get States List
1324
 *
1325
 * @access      public
1326
 * @since       1.2
1327
 * @return      array
1328
 */
1329
function give_get_states_list() {
1330
	$states = array(
1331
		''   => '',
1332
		'AL' => 'Alabama',
1333
		'AK' => 'Alaska',
1334
		'AZ' => 'Arizona',
1335
		'AR' => 'Arkansas',
1336
		'CA' => 'California',
1337
		'CO' => 'Colorado',
1338
		'CT' => 'Connecticut',
1339
		'DE' => 'Delaware',
1340
		'DC' => 'District of Columbia',
1341
		'FL' => 'Florida',
1342
		'GA' => 'Georgia',
1343
		'HI' => 'Hawaii',
1344
		'ID' => 'Idaho',
1345
		'IL' => 'Illinois',
1346
		'IN' => 'Indiana',
1347
		'IA' => 'Iowa',
1348
		'KS' => 'Kansas',
1349
		'KY' => 'Kentucky',
1350
		'LA' => 'Louisiana',
1351
		'ME' => 'Maine',
1352
		'MD' => 'Maryland',
1353
		'MA' => 'Massachusetts',
1354
		'MI' => 'Michigan',
1355
		'MN' => 'Minnesota',
1356
		'MS' => 'Mississippi',
1357
		'MO' => 'Missouri',
1358
		'MT' => 'Montana',
1359
		'NE' => 'Nebraska',
1360
		'NV' => 'Nevada',
1361
		'NH' => 'New Hampshire',
1362
		'NJ' => 'New Jersey',
1363
		'NM' => 'New Mexico',
1364
		'NY' => 'New York',
1365
		'NC' => 'North Carolina',
1366
		'ND' => 'North Dakota',
1367
		'OH' => 'Ohio',
1368
		'OK' => 'Oklahoma',
1369
		'OR' => 'Oregon',
1370
		'PA' => 'Pennsylvania',
1371
		'RI' => 'Rhode Island',
1372
		'SC' => 'South Carolina',
1373
		'SD' => 'South Dakota',
1374
		'TN' => 'Tennessee',
1375
		'TX' => 'Texas',
1376
		'UT' => 'Utah',
1377
		'VT' => 'Vermont',
1378
		'VA' => 'Virginia',
1379
		'WA' => 'Washington',
1380
		'WV' => 'West Virginia',
1381
		'WI' => 'Wisconsin',
1382
		'WY' => 'Wyoming',
1383
		'AS' => 'American Samoa',
1384
		'CZ' => 'Canal Zone',
1385
		'CM' => 'Commonwealth of the Northern Mariana Islands',
1386
		'FM' => 'Federated States of Micronesia',
1387
		'GU' => 'Guam',
1388
		'MH' => 'Marshall Islands',
1389
		'MP' => 'Northern Mariana Islands',
1390
		'PW' => 'Palau',
1391
		'PI' => 'Philippine Islands',
1392
		'PR' => 'Puerto Rico',
1393
		'TT' => 'Trust Territory of the Pacific Islands',
1394
		'VI' => 'Virgin Islands',
1395
		'AA' => 'Armed Forces - Americas',
1396
		'AE' => 'Armed Forces - Europe, Canada, Middle East, Africa',
1397
		'AP' => 'Armed Forces - Pacific'
1398
	);
1399
1400
	return apply_filters( 'give_us_states', $states );
1401
}
1402
1403
/**
1404
 * Get Provinces List
1405
 *
1406
 * @access      public
1407
 * @since       1.0
1408
 * @return      array
1409
 */
1410
function give_get_provinces_list() {
1411
	$provinces = array(
1412
		''   => '',
1413
		'AB' => esc_html__('Alberta', 'give' ),
1414
		'BC' => esc_html__('British Columbia', 'give' ),
1415
		'MB' => esc_html__('Manitoba', 'give' ),
1416
		'NB' => esc_html__('New Brunswick', 'give' ),
1417
		'NL' => esc_html__('Newfoundland and Labrador', 'give' ),
1418
		'NS' => esc_html__('Nova Scotia', 'give' ),
1419
		'NT' => esc_html__('Northwest Territories', 'give' ),
1420
		'NU' => esc_html__('Nunavut', 'give' ),
1421
		'ON' => esc_html__('Ontario', 'give' ),
1422
		'PE' => esc_html__('Prince Edward Island', 'give' ),
1423
		'QC' => esc_html__('Quebec', 'give' ),
1424
		'SK' => esc_html__('Saskatchewan', 'give' ),
1425
		'YT' => esc_html__('Yukon', 'give' )
1426
	);
1427
1428
	return apply_filters( 'give_canada_provinces', $provinces );
1429
}
1430
1431
/**
1432
 * Get Australian States
1433
 *
1434
 * @since 1.0
1435
 * @return array $states A list of states
1436
 */
1437
function give_get_australian_states_list() {
1438
	$states = array(
1439
		''    => '',
1440
		'ACT' => 'Australian Capital Territory',
1441
		'NSW' => 'New South Wales',
1442
		'NT'  => 'Northern Territory',
1443
		'QLD' => 'Queensland',
1444
		'SA'  => 'South Australia',
1445
		'TAS' => 'Tasmania',
1446
		'VIC' => 'Victoria',
1447
		'WA'  => 'Western Australia'
1448
	);
1449
1450
	return apply_filters( 'give_australian_states', $states );
1451
}
1452
1453
/**
1454
 * Get Brazil States
1455
 *
1456
 * @since 1.0
1457
 * @return array $states A list of states
1458
 */
1459
function give_get_brazil_states_list() {
1460
	$states = array(
1461
		''   => '',
1462
		'AC' => 'Acre',
1463
		'AL' => 'Alagoas',
1464
		'AP' => 'Amap&aacute;',
1465
		'AM' => 'Amazonas',
1466
		'BA' => 'Bahia',
1467
		'CE' => 'Cear&aacute;',
1468
		'DF' => 'Distrito Federal',
1469
		'ES' => 'Esp&iacute;rito Santo',
1470
		'GO' => 'Goi&aacute;s',
1471
		'MA' => 'Maranh&atilde;o',
1472
		'MT' => 'Mato Grosso',
1473
		'MS' => 'Mato Grosso do Sul',
1474
		'MG' => 'Minas Gerais',
1475
		'PA' => 'Par&aacute;',
1476
		'PB' => 'Para&iacute;ba',
1477
		'PR' => 'Paran&aacute;',
1478
		'PE' => 'Pernambuco',
1479
		'PI' => 'Piau&iacute;',
1480
		'RJ' => 'Rio de Janeiro',
1481
		'RN' => 'Rio Grande do Norte',
1482
		'RS' => 'Rio Grande do Sul',
1483
		'RO' => 'Rond&ocirc;nia',
1484
		'RR' => 'Roraima',
1485
		'SC' => 'Santa Catarina',
1486
		'SP' => 'S&atilde;o Paulo',
1487
		'SE' => 'Sergipe',
1488
		'TO' => 'Tocantins'
1489
	);
1490
1491
	return apply_filters( 'give_brazil_states', $states );
1492
}
1493
1494
/**
1495
 * Get Hong Kong States
1496
 *
1497
 * @since 1.0
1498
 * @return array $states A list of states
1499
 */
1500
function give_get_hong_kong_states_list() {
1501
	$states = array(
1502
		''                => '',
1503
		'HONG KONG'       => 'Hong Kong Island',
1504
		'KOWLOON'         => 'Kowloon',
1505
		'NEW TERRITORIES' => 'New Territories'
1506
	);
1507
1508
	return apply_filters( 'give_hong_kong_states', $states );
1509
}
1510
1511
/**
1512
 * Get Hungary States
1513
 *
1514
 * @since 1.0
1515
 * @return array $states A list of states
1516
 */
1517
function give_get_hungary_states_list() {
1518
	$states = array(
1519
		''   => '',
1520
		'BK' => 'Bács-Kiskun',
1521
		'BE' => 'Békés',
1522
		'BA' => 'Baranya',
1523
		'BZ' => 'Borsod-Abaúj-Zemplén',
1524
		'BU' => 'Budapest',
1525
		'CS' => 'Csongrád',
1526
		'FE' => 'Fejér',
1527
		'GS' => 'Győr-Moson-Sopron',
1528
		'HB' => 'Hajdú-Bihar',
1529
		'HE' => 'Heves',
1530
		'JN' => 'Jász-Nagykun-Szolnok',
1531
		'KE' => 'Komárom-Esztergom',
1532
		'NO' => 'Nógrád',
1533
		'PE' => 'Pest',
1534
		'SO' => 'Somogy',
1535
		'SZ' => 'Szabolcs-Szatmár-Bereg',
1536
		'TO' => 'Tolna',
1537
		'VA' => 'Vas',
1538
		'VE' => 'Veszprém',
1539
		'ZA' => 'Zala'
1540
	);
1541
1542
	return apply_filters( 'give_hungary_states', $states );
1543
}
1544
1545
/**
1546
 * Get Chinese States
1547
 *
1548
 * @since 1.0
1549
 * @return array $states A list of states
1550
 */
1551
function give_get_chinese_states_list() {
1552
	$states = array(
1553
		''     => '',
1554
		'CN1'  => 'Yunnan / &#20113;&#21335;',
1555
		'CN2'  => 'Beijing / &#21271;&#20140;',
1556
		'CN3'  => 'Tianjin / &#22825;&#27941;',
1557
		'CN4'  => 'Hebei / &#27827;&#21271;',
1558
		'CN5'  => 'Shanxi / &#23665;&#35199;',
1559
		'CN6'  => 'Inner Mongolia / &#20839;&#33945;&#21476;',
1560
		'CN7'  => 'Liaoning / &#36797;&#23425;',
1561
		'CN8'  => 'Jilin / &#21513;&#26519;',
1562
		'CN9'  => 'Heilongjiang / &#40657;&#40857;&#27743;',
1563
		'CN10' => 'Shanghai / &#19978;&#28023;',
1564
		'CN11' => 'Jiangsu / &#27743;&#33487;',
1565
		'CN12' => 'Zhejiang / &#27993;&#27743;',
1566
		'CN13' => 'Anhui / &#23433;&#24509;',
1567
		'CN14' => 'Fujian / &#31119;&#24314;',
1568
		'CN15' => 'Jiangxi / &#27743;&#35199;',
1569
		'CN16' => 'Shandong / &#23665;&#19996;',
1570
		'CN17' => 'Henan / &#27827;&#21335;',
1571
		'CN18' => 'Hubei / &#28246;&#21271;',
1572
		'CN19' => 'Hunan / &#28246;&#21335;',
1573
		'CN20' => 'Guangdong / &#24191;&#19996;',
1574
		'CN21' => 'Guangxi Zhuang / &#24191;&#35199;&#22766;&#26063;',
1575
		'CN22' => 'Hainan / &#28023;&#21335;',
1576
		'CN23' => 'Chongqing / &#37325;&#24198;',
1577
		'CN24' => 'Sichuan / &#22235;&#24029;',
1578
		'CN25' => 'Guizhou / &#36149;&#24030;',
1579
		'CN26' => 'Shaanxi / &#38485;&#35199;',
1580
		'CN27' => 'Gansu / &#29976;&#32899;',
1581
		'CN28' => 'Qinghai / &#38738;&#28023;',
1582
		'CN29' => 'Ningxia Hui / &#23425;&#22799;',
1583
		'CN30' => 'Macau / &#28595;&#38376;',
1584
		'CN31' => 'Tibet / &#35199;&#34255;',
1585
		'CN32' => 'Xinjiang / &#26032;&#30086;'
1586
	);
1587
1588
	return apply_filters( 'give_chinese_states', $states );
1589
}
1590
1591
/**
1592
 * Get New Zealand States
1593
 *
1594
 * @since 1.0
1595
 * @return array $states A list of states
1596
 */
1597
function give_get_new_zealand_states_list() {
1598
	$states = array(
1599
		''   => '',
1600
		'AK' => 'Auckland',
1601
		'BP' => 'Bay of Plenty',
1602
		'CT' => 'Canterbury',
1603
		'HB' => 'Hawke&rsquo;s Bay',
1604
		'MW' => 'Manawatu-Wanganui',
1605
		'MB' => 'Marlborough',
1606
		'NS' => 'Nelson',
1607
		'NL' => 'Northland',
1608
		'OT' => 'Otago',
1609
		'SL' => 'Southland',
1610
		'TK' => 'Taranaki',
1611
		'TM' => 'Tasman',
1612
		'WA' => 'Waikato',
1613
		'WE' => 'Wellington',
1614
		'WC' => 'West Coast'
1615
	);
1616
1617
	return apply_filters( 'give_new_zealand_states', $states );
1618
}
1619
1620
/**
1621
 * Get Indonesian States
1622
 *
1623
 * @since 1.0
1624
 * @return array $states A list of states
1625
 */
1626
function give_get_indonesian_states_list() {
1627
	$states = array(
1628
		''   => '',
1629
		'AC' => 'Daerah Istimewa Aceh',
1630
		'SU' => 'Sumatera Utara',
1631
		'SB' => 'Sumatera Barat',
1632
		'RI' => 'Riau',
1633
		'KR' => 'Kepulauan Riau',
1634
		'JA' => 'Jambi',
1635
		'SS' => 'Sumatera Selatan',
1636
		'BB' => 'Bangka Belitung',
1637
		'BE' => 'Bengkulu',
1638
		'LA' => 'Lampung',
1639
		'JK' => 'DKI Jakarta',
1640
		'JB' => 'Jawa Barat',
1641
		'BT' => 'Banten',
1642
		'JT' => 'Jawa Tengah',
1643
		'JI' => 'Jawa Timur',
1644
		'YO' => 'Daerah Istimewa Yogyakarta',
1645
		'BA' => 'Bali',
1646
		'NB' => 'Nusa Tenggara Barat',
1647
		'NT' => 'Nusa Tenggara Timur',
1648
		'KB' => 'Kalimantan Barat',
1649
		'KT' => 'Kalimantan Tengah',
1650
		'KI' => 'Kalimantan Timur',
1651
		'KS' => 'Kalimantan Selatan',
1652
		'KU' => 'Kalimantan Utara',
1653
		'SA' => 'Sulawesi Utara',
1654
		'ST' => 'Sulawesi Tengah',
1655
		'SG' => 'Sulawesi Tenggara',
1656
		'SR' => 'Sulawesi Barat',
1657
		'SN' => 'Sulawesi Selatan',
1658
		'GO' => 'Gorontalo',
1659
		'MA' => 'Maluku',
1660
		'MU' => 'Maluku Utara',
1661
		'PA' => 'Papua',
1662
		'PB' => 'Papua Barat'
1663
	);
1664
1665
	return apply_filters( 'give_indonesia_states', $states );
1666
}
1667
1668
/**
1669
 * Get Indian States
1670
 *
1671
 * @since 1.0
1672
 * @return array $states A list of states
1673
 */
1674
function give_get_indian_states_list() {
1675
	$states = array(
1676
		''   => '',
1677
		'AP' => 'Andhra Pradesh',
1678
		'AR' => 'Arunachal Pradesh',
1679
		'AS' => 'Assam',
1680
		'BR' => 'Bihar',
1681
		'CT' => 'Chhattisgarh',
1682
		'GA' => 'Goa',
1683
		'GJ' => 'Gujarat',
1684
		'HR' => 'Haryana',
1685
		'HP' => 'Himachal Pradesh',
1686
		'JK' => 'Jammu and Kashmir',
1687
		'JH' => 'Jharkhand',
1688
		'KA' => 'Karnataka',
1689
		'KL' => 'Kerala',
1690
		'MP' => 'Madhya Pradesh',
1691
		'MH' => 'Maharashtra',
1692
		'MN' => 'Manipur',
1693
		'ML' => 'Meghalaya',
1694
		'MZ' => 'Mizoram',
1695
		'NL' => 'Nagaland',
1696
		'OR' => 'Orissa',
1697
		'PB' => 'Punjab',
1698
		'RJ' => 'Rajasthan',
1699
		'SK' => 'Sikkim',
1700
		'TN' => 'Tamil Nadu',
1701
		'TG' => 'Telangana',
1702
		'TR' => 'Tripura',
1703
		'UT' => 'Uttarakhand',
1704
		'UP' => 'Uttar Pradesh',
1705
		'WB' => 'West Bengal',
1706
		'AN' => 'Andaman and Nicobar Islands',
1707
		'CH' => 'Chandigarh',
1708
		'DN' => 'Dadar and Nagar Haveli',
1709
		'DD' => 'Daman and Diu',
1710
		'DL' => 'Delhi',
1711
		'LD' => 'Lakshadweep',
1712
		'PY' => 'Pondicherry (Puducherry)'
1713
	);
1714
1715
	return apply_filters( 'give_indian_states', $states );
1716
}
1717
1718
/**
1719
 * Get Malaysian States
1720
 *
1721
 * @since 1.6
1722
 * @return array $states A list of states
1723
 */
1724
function give_get_malaysian_states_list() {
1725
	$states = array(
1726
		''    => '',
1727
		'JHR' => 'Johor',
1728
		'KDH' => 'Kedah',
1729
		'KTN' => 'Kelantan',
1730
		'MLK' => 'Melaka',
1731
		'NSN' => 'Negeri Sembilan',
1732
		'PHG' => 'Pahang',
1733
		'PRK' => 'Perak',
1734
		'PLS' => 'Perlis',
1735
		'PNG' => 'Pulau Pinang',
1736
		'SBH' => 'Sabah',
1737
		'SWK' => 'Sarawak',
1738
		'SGR' => 'Selangor',
1739
		'TRG' => 'Terengganu',
1740
		'KUL' => 'W.P. Kuala Lumpur',
1741
		'LBN' => 'W.P. Labuan',
1742
		'PJY' => 'W.P. Putrajaya'
1743
	);
1744
1745
	return apply_filters( 'give_malaysian_states', $states );
1746
}
1747
1748
/**
1749
 * Get South African States
1750
 *
1751
 * @since 1.6
1752
 * @return array $states A list of states
1753
 */
1754
function give_get_south_african_states_list() {
1755
	$states = array(
1756
		''    => '',
1757
		'EC'  => 'Eastern Cape',
1758
		'FS'  => 'Free State',
1759
		'GP'  => 'Gauteng',
1760
		'KZN' => 'KwaZulu-Natal',
1761
		'LP'  => 'Limpopo',
1762
		'MP'  => 'Mpumalanga',
1763
		'NC'  => 'Northern Cape',
1764
		'NW'  => 'North West',
1765
		'WC'  => 'Western Cape'
1766
	);
1767
1768
	return apply_filters( 'give_south_african_states', $states );
1769
}
1770
1771
/**
1772
 * Get Thailand States
1773
 *
1774
 * @since 1.6
1775
 * @return array $states A list of states
1776
 */
1777
function give_get_thailand_states_list() {
1778
	$states = array(
1779
		''      => '',
1780
		'TH-37' => 'Amnat Charoen (&#3629;&#3635;&#3609;&#3634;&#3592;&#3648;&#3592;&#3619;&#3636;&#3597;)',
1781
		'TH-15' => 'Ang Thong (&#3629;&#3656;&#3634;&#3591;&#3607;&#3629;&#3591;)',
1782
		'TH-14' => 'Ayutthaya (&#3614;&#3619;&#3632;&#3609;&#3588;&#3619;&#3624;&#3619;&#3637;&#3629;&#3618;&#3640;&#3608;&#3618;&#3634;)',
1783
		'TH-10' => 'Bangkok (&#3585;&#3619;&#3640;&#3591;&#3648;&#3607;&#3614;&#3617;&#3627;&#3634;&#3609;&#3588;&#3619;)',
1784
		'TH-38' => 'Bueng Kan (&#3610;&#3638;&#3591;&#3585;&#3634;&#3628;)',
1785
		'TH-31' => 'Buri Ram (&#3610;&#3640;&#3619;&#3637;&#3619;&#3633;&#3617;&#3618;&#3660;)',
1786
		'TH-24' => 'Chachoengsao (&#3593;&#3632;&#3648;&#3594;&#3636;&#3591;&#3648;&#3607;&#3619;&#3634;)',
1787
		'TH-18' => 'Chai Nat (&#3594;&#3633;&#3618;&#3609;&#3634;&#3607;)',
1788
		'TH-36' => 'Chaiyaphum (&#3594;&#3633;&#3618;&#3616;&#3641;&#3617;&#3636;)',
1789
		'TH-22' => 'Chanthaburi (&#3592;&#3633;&#3609;&#3607;&#3610;&#3640;&#3619;&#3637;)',
1790
		'TH-50' => 'Chiang Mai (&#3648;&#3594;&#3637;&#3618;&#3591;&#3651;&#3627;&#3617;&#3656;)',
1791
		'TH-57' => 'Chiang Rai (&#3648;&#3594;&#3637;&#3618;&#3591;&#3619;&#3634;&#3618;)',
1792
		'TH-20' => 'Chonburi (&#3594;&#3621;&#3610;&#3640;&#3619;&#3637;)',
1793
		'TH-86' => 'Chumphon (&#3594;&#3640;&#3617;&#3614;&#3619;)',
1794
		'TH-46' => 'Kalasin (&#3585;&#3634;&#3628;&#3626;&#3636;&#3609;&#3608;&#3640;&#3660;)',
1795
		'TH-62' => 'Kamphaeng Phet (&#3585;&#3635;&#3649;&#3614;&#3591;&#3648;&#3614;&#3594;&#3619;)',
1796
		'TH-71' => 'Kanchanaburi (&#3585;&#3634;&#3597;&#3592;&#3609;&#3610;&#3640;&#3619;&#3637;)',
1797
		'TH-40' => 'Khon Kaen (&#3586;&#3629;&#3609;&#3649;&#3585;&#3656;&#3609;)',
1798
		'TH-81' => 'Krabi (&#3585;&#3619;&#3632;&#3610;&#3637;&#3656;)',
1799
		'TH-52' => 'Lampang (&#3621;&#3635;&#3611;&#3634;&#3591;)',
1800
		'TH-51' => 'Lamphun (&#3621;&#3635;&#3614;&#3641;&#3609;)',
1801
		'TH-42' => 'Loei (&#3648;&#3621;&#3618;)',
1802
		'TH-16' => 'Lopburi (&#3621;&#3614;&#3610;&#3640;&#3619;&#3637;)',
1803
		'TH-58' => 'Mae Hong Son (&#3649;&#3617;&#3656;&#3630;&#3656;&#3629;&#3591;&#3626;&#3629;&#3609;)',
1804
		'TH-44' => 'Maha Sarakham (&#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617;)',
1805
		'TH-49' => 'Mukdahan (&#3617;&#3640;&#3585;&#3604;&#3634;&#3627;&#3634;&#3619;)',
1806
		'TH-26' => 'Nakhon Nayok (&#3609;&#3588;&#3619;&#3609;&#3634;&#3618;&#3585;)',
1807
		'TH-73' => 'Nakhon Pathom (&#3609;&#3588;&#3619;&#3611;&#3600;&#3617;)',
1808
		'TH-48' => 'Nakhon Phanom (&#3609;&#3588;&#3619;&#3614;&#3609;&#3617;)',
1809
		'TH-30' => 'Nakhon Ratchasima (&#3609;&#3588;&#3619;&#3619;&#3634;&#3594;&#3626;&#3637;&#3617;&#3634;)',
1810
		'TH-60' => 'Nakhon Sawan (&#3609;&#3588;&#3619;&#3626;&#3623;&#3619;&#3619;&#3588;&#3660;)',
1811
		'TH-80' => 'Nakhon Si Thammarat (&#3609;&#3588;&#3619;&#3624;&#3619;&#3637;&#3608;&#3619;&#3619;&#3617;&#3619;&#3634;&#3594;)',
1812
		'TH-55' => 'Nan (&#3609;&#3656;&#3634;&#3609;)',
1813
		'TH-96' => 'Narathiwat (&#3609;&#3619;&#3634;&#3608;&#3636;&#3623;&#3634;&#3626;)',
1814
		'TH-39' => 'Nong Bua Lam Phu (&#3627;&#3609;&#3629;&#3591;&#3610;&#3633;&#3623;&#3621;&#3635;&#3616;&#3641;)',
1815
		'TH-43' => 'Nong Khai (&#3627;&#3609;&#3629;&#3591;&#3588;&#3634;&#3618;)',
1816
		'TH-12' => 'Nonthaburi (&#3609;&#3609;&#3607;&#3610;&#3640;&#3619;&#3637;)',
1817
		'TH-13' => 'Pathum Thani (&#3611;&#3607;&#3640;&#3617;&#3608;&#3634;&#3609;&#3637;)',
1818
		'TH-94' => 'Pattani (&#3611;&#3633;&#3605;&#3605;&#3634;&#3609;&#3637;)',
1819
		'TH-82' => 'Phang Nga (&#3614;&#3633;&#3591;&#3591;&#3634;)',
1820
		'TH-93' => 'Phatthalung (&#3614;&#3633;&#3607;&#3621;&#3640;&#3591;)',
1821
		'TH-56' => 'Phayao (&#3614;&#3632;&#3648;&#3618;&#3634;)',
1822
		'TH-67' => 'Phetchabun (&#3648;&#3614;&#3594;&#3619;&#3610;&#3641;&#3619;&#3603;&#3660;)',
1823
		'TH-76' => 'Phetchaburi (&#3648;&#3614;&#3594;&#3619;&#3610;&#3640;&#3619;&#3637;)',
1824
		'TH-66' => 'Phichit (&#3614;&#3636;&#3592;&#3636;&#3605;&#3619;)',
1825
		'TH-65' => 'Phitsanulok (&#3614;&#3636;&#3625;&#3603;&#3640;&#3650;&#3621;&#3585;)',
1826
		'TH-54' => 'Phrae (&#3649;&#3614;&#3619;&#3656;)',
1827
		'TH-83' => 'Phuket (&#3616;&#3641;&#3648;&#3585;&#3655;&#3605;)',
1828
		'TH-25' => 'Prachin Buri (&#3611;&#3619;&#3634;&#3592;&#3637;&#3609;&#3610;&#3640;&#3619;&#3637;)',
1829
		'TH-77' => 'Prachuap Khiri Khan (&#3611;&#3619;&#3632;&#3592;&#3623;&#3610;&#3588;&#3637;&#3619;&#3637;&#3586;&#3633;&#3609;&#3608;&#3660;)',
1830
		'TH-85' => 'Ranong (&#3619;&#3632;&#3609;&#3629;&#3591;)',
1831
		'TH-70' => 'Ratchaburi (&#3619;&#3634;&#3594;&#3610;&#3640;&#3619;&#3637;)',
1832
		'TH-21' => 'Rayong (&#3619;&#3632;&#3618;&#3629;&#3591;)',
1833
		'TH-45' => 'Roi Et (&#3619;&#3657;&#3629;&#3618;&#3648;&#3629;&#3655;&#3604;)',
1834
		'TH-27' => 'Sa Kaeo (&#3626;&#3619;&#3632;&#3649;&#3585;&#3657;&#3623;)',
1835
		'TH-47' => 'Sakon Nakhon (&#3626;&#3585;&#3621;&#3609;&#3588;&#3619;)',
1836
		'TH-11' => 'Samut Prakan (&#3626;&#3617;&#3640;&#3607;&#3619;&#3611;&#3619;&#3634;&#3585;&#3634;&#3619;)',
1837
		'TH-74' => 'Samut Sakhon (&#3626;&#3617;&#3640;&#3607;&#3619;&#3626;&#3634;&#3588;&#3619;)',
1838
		'TH-75' => 'Samut Songkhram (&#3626;&#3617;&#3640;&#3607;&#3619;&#3626;&#3591;&#3588;&#3619;&#3634;&#3617;)',
1839
		'TH-19' => 'Saraburi (&#3626;&#3619;&#3632;&#3610;&#3640;&#3619;&#3637;)',
1840
		'TH-91' => 'Satun (&#3626;&#3605;&#3641;&#3621;)',
1841
		'TH-17' => 'Sing Buri (&#3626;&#3636;&#3591;&#3627;&#3660;&#3610;&#3640;&#3619;&#3637;)',
1842
		'TH-33' => 'Sisaket (&#3624;&#3619;&#3637;&#3626;&#3632;&#3648;&#3585;&#3625;)',
1843
		'TH-90' => 'Songkhla (&#3626;&#3591;&#3586;&#3621;&#3634;)',
1844
		'TH-64' => 'Sukhothai (&#3626;&#3640;&#3650;&#3586;&#3607;&#3633;&#3618;)',
1845
		'TH-72' => 'Suphan Buri (&#3626;&#3640;&#3614;&#3619;&#3619;&#3603;&#3610;&#3640;&#3619;&#3637;)',
1846
		'TH-84' => 'Surat Thani (&#3626;&#3640;&#3619;&#3634;&#3625;&#3598;&#3619;&#3660;&#3608;&#3634;&#3609;&#3637;)',
1847
		'TH-32' => 'Surin (&#3626;&#3640;&#3619;&#3636;&#3609;&#3607;&#3619;&#3660;)',
1848
		'TH-63' => 'Tak (&#3605;&#3634;&#3585;)',
1849
		'TH-92' => 'Trang (&#3605;&#3619;&#3633;&#3591;)',
1850
		'TH-23' => 'Trat (&#3605;&#3619;&#3634;&#3604;)',
1851
		'TH-34' => 'Ubon Ratchathani (&#3629;&#3640;&#3610;&#3621;&#3619;&#3634;&#3594;&#3608;&#3634;&#3609;&#3637;)',
1852
		'TH-41' => 'Udon Thani (&#3629;&#3640;&#3604;&#3619;&#3608;&#3634;&#3609;&#3637;)',
1853
		'TH-61' => 'Uthai Thani (&#3629;&#3640;&#3607;&#3633;&#3618;&#3608;&#3634;&#3609;&#3637;)',
1854
		'TH-53' => 'Uttaradit (&#3629;&#3640;&#3605;&#3619;&#3604;&#3636;&#3605;&#3606;&#3660;)',
1855
		'TH-95' => 'Yala (&#3618;&#3632;&#3621;&#3634;)',
1856
		'TH-35' => 'Yasothon (&#3618;&#3650;&#3626;&#3608;&#3619;)'
1857
	);
1858
1859
	return apply_filters( 'give_thailand_states', $states );
1860
}
1861
1862
/**
1863
 * Get Spain States
1864
 *
1865
 * @since 1.0
1866
 * @return array $states A list of states
1867
 */
1868
function give_get_spain_states_list() {
1869
	$states = array(
1870
		''   => '',
1871
		'C'  => esc_html__( 'A Coru&ntilde;a', 'give' ),
1872
		'VI' => esc_html__( 'Álava', 'give' ),
1873
		'AB' => esc_html__( 'Albacete', 'give' ),
1874
		'A'  => esc_html__( 'Alicante', 'give' ),
1875
		'AL' => esc_html__( 'Almer&iacute;a', 'give' ),
1876
		'O'  => esc_html__( 'Asturias', 'give' ),
1877
		'AV' => esc_html__( '&Aacute;vila', 'give' ),
1878
		'BA' => esc_html__( 'Badajoz', 'give' ),
1879
		'PM' => esc_html__( 'Baleares', 'give' ),
1880
		'B'  => esc_html__( 'Barcelona', 'give' ),
1881
		'BU' => esc_html__( 'Burgos', 'give' ),
1882
		'CC' => esc_html__( 'C&aacute;ceres', 'give' ),
1883
		'CA' => esc_html__( 'C&aacute;diz', 'give' ),
1884
		'S'  => esc_html__( 'Cantabria', 'give' ),
1885
		'CS' => esc_html__( 'Castell&oacute;n', 'give' ),
1886
		'CE' => esc_html__( 'Ceuta', 'give' ),
1887
		'CR' => esc_html__( 'Ciudad Real', 'give' ),
1888
		'CO' => esc_html__( 'C&oacute;rdoba', 'give' ),
1889
		'CU' => esc_html__( 'Cuenca', 'give' ),
1890
		'GI' => esc_html__( 'Girona', 'give' ),
1891
		'GR' => esc_html__( 'Granada', 'give' ),
1892
		'GU' => esc_html__( 'Guadalajara', 'give' ),
1893
		'SS' => esc_html__( 'Gipuzkoa', 'give' ),
1894
		'H'  => esc_html__( 'Huelva', 'give' ),
1895
		'HU' => esc_html__( 'Huesca', 'give' ),
1896
		'J'  => esc_html__( 'Ja&eacute;n', 'give' ),
1897
		'LO' => esc_html__( 'La Rioja', 'give' ),
1898
		'GC' => esc_html__( 'Las Palmas', 'give' ),
1899
		'LE' => esc_html__( 'Le&oacute;n', 'give' ),
1900
		'L'  => esc_html__( 'Lleida', 'give' ),
1901
		'LU' => esc_html__( 'Lugo', 'give' ),
1902
		'M'  => esc_html__( 'Madrid', 'give' ),
1903
		'MA' => esc_html__( 'M&aacute;laga', 'give' ),
1904
		'ML' => esc_html__( 'Melilla', 'give' ),
1905
		'MU' => esc_html__( 'Murcia', 'give' ),
1906
		'NA' => esc_html__( 'Navarra', 'give' ),
1907
		'OR' => esc_html__( 'Ourense', 'give' ),
1908
		'P'  => esc_html__( 'Palencia', 'give' ),
1909
		'PO' => esc_html__( 'Pontevedra', 'give' ),
1910
		'SA' => esc_html__( 'Salamanca', 'give' ),
1911
		'TF' => esc_html__( 'Santa Cruz de Tenerife', 'give' ),
1912
		'SG' => esc_html__( 'Segovia', 'give' ),
1913
		'SE' => esc_html__( 'Sevilla', 'give' ),
1914
		'SO' => esc_html__( 'Soria', 'give' ),
1915
		'T'  => esc_html__( 'Tarragona', 'give' ),
1916
		'TE' => esc_html__( 'Teruel', 'give' ),
1917
		'TO' => esc_html__( 'Toledo', 'give' ),
1918
		'V'  => esc_html__( 'Valencia', 'give' ),
1919
		'VA' => esc_html__( 'Valladolid', 'give' ),
1920
		'BI' => esc_html__( 'Bizkaia', 'give' ),
1921
		'ZA' => esc_html__( 'Zamora', 'give' ),
1922
		'Z'  => esc_html__( 'Zaragoza', 'give' )
1923
	);
1924
1925
	return apply_filters( 'give_spain_states', $states );
1926
}
1927