Test Failed
Push — issues/1925 ( 817edf )
by Ravinder
04: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 %

Importance

Changes 0
Metric Value
cc 3
eloc 8
nc 4
nop 1
dl 0
loc 25
rs 8.8571
c 0
b 0
f 0
1
<?php
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'),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces before closing bracket; 0 found
Loading history...
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_list = array();
400
	$locale = give_get_country_locale();
401
	foreach ( $locale as $key => $value ) {
402
		if ( ! empty( $value['state'] ) && isset( $value['state']['required'] ) && false === $value['state']['required'] ){
403
			$country_list[ $key ] = $value['state'];
404
		}
405
	}
406
407
	/**
408
	 * Filter can be used to add or remove the Country that does not have states init.
409
	 *
410
	 * @since 1.8.11
411
	 *
412
	 * @param array  $country Contain key as there country code & value as there country name.
413
	 */
414
	return (array) apply_filters( 'give_no_states_country_list', $country_list );
415
}
416
417
function give_get_states_label() {
418
	$country_states_label = array();
419
	$default_label = __( 'State', 'give' );
420
	$locale = give_get_country_locale();
421
	foreach ( $locale as $key => $value ) {
422
		$label = $default_label;
423
		if ( ! empty( $value['state'] ) && ! empty( $value['state']['label'] ) ){
424
			$label = $value['state']['label'];
425
		}
426
		$country_states_label[ $key ] = $label;
427
	}
428
429
	/**
430
	 * Filter can be used to add or remove the Country that does not have states init.
431
	 *
432
	 * @since 1.8.11
433
	 *
434
	 * @param array  $country Contain key as there country code & value as there country name.
435
	 */
436
	return (array) apply_filters( 'give_get_states_label', $country_states_label );
437
}
438
439
440
function give_get_country_locale() {
441
	return (array) apply_filters( 'give_get_country_locale', array(
442
		'AF' => array(
443
			'state' => array(
444
				'required' => false,
445
			),
446
		),
447
		'AT' => array(
448
			'state' => array(
449
				'required' => false,
450
			),
451
		),
452
		'AU' => array(
453
			'city'      => array(
454
				'label'       => __( 'Suburb', 'give' ),
455
			),
456
			'postcode'  => array(
457
				'label'       => __( 'Postcode', 'give' ),
458
			),
459
			'state'     => array(
460
				'label'       => __( 'State', 'give' ),
461
			),
462
		),
463
		'AX' => array(
464
			'state' => array(
465
				'required' => false,
466
			),
467
		),
468
		'BD' => array(
469
			'state' => array(
470
				'label'       => __( 'District', 'give' ),
471
			),
472
		),
473
		'BE' => array(
474
			'state' => array(
475
				'required'    => false,
476
				'label'       => __( 'Province', 'give' ),
477
			),
478
		),
479
		'BI' => array(
480
			'state' => array(
481
				'required' => false,
482
			),
483
		),
484
		'CA' => array(
485
			'state' => array(
486
				'label'       => __( 'Province', 'give' ),
487
			),
488
		),
489
		'CH' => array(
490
			'state' => array(
491
				'label'       => __( 'Canton', 'give' ),
492
				'required'    => false,
493
			),
494
		),
495
		'CL' => array(
496
			'state'     => array(
497
				'label'       => __( 'Region', 'give' ),
498
			),
499
		),
500
		'CN' => array(
501
			'state' => array(
502
				'label'       => __( 'Province', 'give' ),
503
			),
504
		),
505
		'CZ' => array(
506
			'state' => array(
507
				'required' => false,
508
			),
509
		),
510
		'DE' => array(
511
			'state' => array(
512
				'required' => false,
513
			),
514
		),
515
		'DK' => array(
516
			'state' => array(
517
				'required' => false,
518
			),
519
		),
520
		'EE' => array(
521
			'state' => array(
522
				'required' => false,
523
			),
524
		),
525
		'FI' => array(
526
			'state' => array(
527
				'required' => false,
528
			),
529
		),
530
		'FR' => array(
531
			'state' => array(
532
				'required' => false,
533
			),
534
		),
535
		'GP' => array(
536
			'state' => array(
537
				'required' => false,
538
			),
539
		),
540
		'GF' => array(
541
			'state' => array(
542
				'required' => false,
543
			),
544
		),
545
		'HK' => array(
546
			'city'  => array(
547
				'label'       => __( 'Town / District', 'give' ),
548
			),
549
			'state' => array(
550
				'label'       => __( 'Region', 'give' ),
551
			),
552
		),
553
		'HU' => array(
554
			'state' => array(
555
				'label'       => __( 'County', 'give' ),
556
			),
557
		),
558
		'ID' => array(
559
			'state' => array(
560
				'label'       => __( 'Province', 'give' ),
561
			),
562
		),
563
		'IE' => array(
564
			'postcode' => array(
565
				'label'    => __( 'Eircode', 'give' ),
566
			),
567
			'state' => array(
568
				'label'       => __( 'County', 'give' ),
569
			),
570
		),
571
		'IS' => array(
572
			'state' => array(
573
				'required' => false,
574
			),
575
		),
576
		'IL' => array(
577
			'state' => array(
578
				'required' => false,
579
			),
580
		),
581
		'IT' => array(
582
			'state' => array(
583
				'label'       => __( 'Province', 'give' ),
584
			),
585
		),
586
		'JP' => array(
587
			'state' => array(
588
				'label' => __( 'Prefecture', 'give' ),
589
			),
590
		),
591
		'KR' => array(
592
			'state' => array(
593
				'required' => false,
594
			),
595
		),
596
		'KW' => array(
597
			'state' => array(
598
				'required' => false,
599
			),
600
		),
601
		'LB' => array(
602
			'state' => array(
603
				'required' => false,
604
			),
605
		),
606
		'MQ' => array(
607
			'state' => array(
608
				'required' => false,
609
			),
610
		),
611
		'NL' => array(
612
			'state' => array(
613
				'required'    => false,
614
				'label'       => __( 'Province', 'give' ),
615
			),
616
		),
617
		'NZ' => array(
618
			'postcode' => array(
619
				'label' => __( 'Postcode', 'give' ),
620
			),
621
			'state' => array(
622
				'required' => false,
623
				'label'    => __( 'Region', 'give' ),
624
			),
625
		),
626
		'NO' => array(
627
			'state' => array(
628
				'required' => false,
629
			),
630
		),
631
		'NP' => array(
632
			'state' => array(
633
				'label'       => __( 'State / Zone', 'give' ),
634
			),
635
		),
636
		'PL' => array(
637
			'state' => array(
638
				'required' => false,
639
			),
640
		),
641
		'PT' => array(
642
			'state' => array(
643
				'required' => false,
644
			),
645
		),
646
		'RE' => array(
647
			'state' => array(
648
				'required' => false,
649
			),
650
		),
651
		'RO' => array(
652
			'state' => array(
653
				'required' => false,
654
			),
655
		),
656
		'SG' => array(
657
			'state' => array(
658
				'required' => false,
659
			),
660
		),
661
		'SK' => array(
662
			'state' => array(
663
				'required' => false,
664
			),
665
		),
666
		'SI' => array(
667
			'state' => array(
668
				'required' => false,
669
			),
670
		),
671
		'ES' => array(
672
			'state' => array(
673
				'label'       => __( 'Province', 'give' ),
674
			),
675
		),
676
		'LI' => array(
677
			'state' => array(
678
				'label'       => __( 'Municipality', 'give' ),
679
				'required'    => false,
680
			),
681
		),
682
		'LK' => array(
683
			'state' => array(
684
				'required' => false,
685
			),
686
		),
687
		'SE' => array(
688
			'state' => array(
689
				'required' => false,
690
			),
691
		),
692
		'TR' => array(
693
			'state' => array(
694
				'label'       => __( 'Province', 'give' ),
695
			),
696
		),
697
		'US' => array(
698
			'postcode'  => array(
699
				'label'       => __( 'ZIP', 'give' ),
700
			),
701
			'state'     => array(
702
				'label'       => __( 'State', 'give' ),
703
			),
704
		),
705
		'GB' => array(
706
			'postcode'  => array(
707
				'label'       => __( 'Postcode', 'give' ),
708
			),
709
			'state'     => array(
710
				'label'       => __( 'County', 'give' ),
711
			),
712
		),
713
		'VN' => array(
714
			'state' => array(
715
				'required' => false,
716
			),
717
		),
718
		'YT' => array(
719
			'state' => array(
720
				'required' => false,
721
			),
722
		),
723
		'ZA' => array(
724
			'state' => array(
725
				'label'       => __( 'Province', 'give' ),
726
			),
727
		)
728
	) );
729
}
730
731
/**
732
 * Get Turkey States
733
 *
734
 * @since 1.8.12
735
 * @return array $states A list of states
736
 */
737
function give_get_turkey_states_list() {
738
	$states = array(
739
		''     => '',
740
		'TR01' => __( 'Adana', 'give' ),
741
		'TR02' => __( 'Ad&#305;yaman', 'give' ),
742
		'TR03' => __( 'Afyon', 'give' ),
743
		'TR04' => __( 'A&#287;r&#305;', 'give' ),
744
		'TR05' => __( 'Amasya', 'give' ),
745
		'TR06' => __( 'Ankara', 'give' ),
746
		'TR07' => __( 'Antalya', 'give' ),
747
		'TR08' => __( 'Artvin', 'give' ),
748
		'TR09' => __( 'Ayd&#305;n', 'give' ),
749
		'TR10' => __( 'Bal&#305;kesir', 'give' ),
750
		'TR11' => __( 'Bilecik', 'give' ),
751
		'TR12' => __( 'Bing&#246;l', 'give' ),
752
		'TR13' => __( 'Bitlis', 'give' ),
753
		'TR14' => __( 'Bolu', 'give' ),
754
		'TR15' => __( 'Burdur', 'give' ),
755
		'TR16' => __( 'Bursa', 'give' ),
756
		'TR17' => __( '&#199;anakkale', 'give' ),
757
		'TR18' => __( '&#199;ank&#305;r&#305;', 'give' ),
758
		'TR19' => __( '&#199;orum', 'give' ),
759
		'TR20' => __( 'Denizli', 'give' ),
760
		'TR21' => __( 'Diyarbak&#305;r', 'give' ),
761
		'TR22' => __( 'Edirne', 'give' ),
762
		'TR23' => __( 'Elaz&#305;&#287;', 'give' ),
763
		'TR24' => __( 'Erzincan', 'give' ),
764
		'TR25' => __( 'Erzurum', 'give' ),
765
		'TR26' => __( 'Eski&#351;ehir', 'give' ),
766
		'TR27' => __( 'Gaziantep', 'give' ),
767
		'TR28' => __( 'Giresun', 'give' ),
768
		'TR29' => __( 'G&#252;m&#252;&#351;hane', 'give' ),
769
		'TR30' => __( 'Hakkari', 'give' ),
770
		'TR31' => __( 'Hatay', 'give' ),
771
		'TR32' => __( 'Isparta', 'give' ),
772
		'TR33' => __( '&#304;&#231;el', 'give' ),
773
		'TR34' => __( '&#304;stanbul', 'give' ),
774
		'TR35' => __( '&#304;zmir', 'give' ),
775
		'TR36' => __( 'Kars', 'give' ),
776
		'TR37' => __( 'Kastamonu', 'give' ),
777
		'TR38' => __( 'Kayseri', 'give' ),
778
		'TR39' => __( 'K&#305;rklareli', 'give' ),
779
		'TR40' => __( 'K&#305;r&#351;ehir', 'give' ),
780
		'TR41' => __( 'Kocaeli', 'give' ),
781
		'TR42' => __( 'Konya', 'give' ),
782
		'TR43' => __( 'K&#252;tahya', 'give' ),
783
		'TR44' => __( 'Malatya', 'give' ),
784
		'TR45' => __( 'Manisa', 'give' ),
785
		'TR46' => __( 'Kahramanmara&#351;', 'give' ),
786
		'TR47' => __( 'Mardin', 'give' ),
787
		'TR48' => __( 'Mu&#287;la', 'give' ),
788
		'TR49' => __( 'Mu&#351;', 'give' ),
789
		'TR50' => __( 'Nev&#351;ehir', 'give' ),
790
		'TR51' => __( 'Ni&#287;de', 'give' ),
791
		'TR52' => __( 'Ordu', 'give' ),
792
		'TR53' => __( 'Rize', 'give' ),
793
		'TR54' => __( 'Sakarya', 'give' ),
794
		'TR55' => __( 'Samsun', 'give' ),
795
		'TR56' => __( 'Siirt', 'give' ),
796
		'TR57' => __( 'Sinop', 'give' ),
797
		'TR58' => __( 'Sivas', 'give' ),
798
		'TR59' => __( 'Tekirda&#287;', 'give' ),
799
		'TR60' => __( 'Tokat', 'give' ),
800
		'TR61' => __( 'Trabzon', 'give' ),
801
		'TR62' => __( 'Tunceli', 'give' ),
802
		'TR63' => __( '&#350;anl&#305;urfa', 'give' ),
803
		'TR64' => __( 'U&#351;ak', 'give' ),
804
		'TR65' => __( 'Van', 'give' ),
805
		'TR66' => __( 'Yozgat', 'give' ),
806
		'TR67' => __( 'Zonguldak', 'give' ),
807
		'TR68' => __( 'Aksaray', 'give' ),
808
		'TR69' => __( 'Bayburt', 'give' ),
809
		'TR70' => __( 'Karaman', 'give' ),
810
		'TR71' => __( 'K&#305;r&#305;kkale', 'give' ),
811
		'TR72' => __( 'Batman', 'give' ),
812
		'TR73' => __( '&#350;&#305;rnak', 'give' ),
813
		'TR74' => __( 'Bart&#305;n', 'give' ),
814
		'TR75' => __( 'Ardahan', 'give' ),
815
		'TR76' => __( 'I&#287;d&#305;r', 'give' ),
816
		'TR77' => __( 'Yalova', 'give' ),
817
		'TR78' => __( 'Karab&#252;k', 'give' ),
818
		'TR79' => __( 'Kilis', 'give' ),
819
		'TR80' => __( 'Osmaniye', 'give' ),
820
		'TR81' => __( 'D&#252;zce', 'give' ),
821
	);
822
	return apply_filters( 'give_turkey_states', $states );
823
}
824
825
/**
826
 * Get Romania States
827
 *
828
 * @since 1.8.12
829
 * @return array $states A list of states
830
 */
831
function give_get_romania_states_list() {
832
	$states = array (
0 ignored issues
show
introduced by
There must be no space between the Array keyword and the opening parenthesis
Loading history...
833
		''     => '',
834
		'AB' => __( 'Alba' , 'give' ),
835
		'AR' => __( 'Arad' , 'give' ),
836
		'AG' => __( 'Arges' , 'give' ),
837
		'BC' => __( 'Bacau' , 'give' ),
838
		'BH' => __( 'Bihor' , 'give' ),
839
		'BN' => __( 'Bistrita-Nasaud' , 'give' ),
840
		'BT' => __( 'Botosani' , 'give' ),
841
		'BR' => __( 'Braila' , 'give' ),
842
		'BV' => __( 'Brasov' , 'give' ),
843
		'B'  => __( 'Bucuresti' , 'give' ),
844
		'BZ' => __( 'Buzau' , 'give' ),
845
		'CL' => __( 'Calarasi' , 'give' ),
846
		'CS' => __( 'Caras-Severin' , 'give' ),
847
		'CJ' => __( 'Cluj' , 'give' ),
848
		'CT' => __( 'Constanta' , 'give' ),
849
		'CV' => __( 'Covasna' , 'give' ),
850
		'DB' => __( 'Dambovita' , 'give' ),
851
		'DJ' => __( 'Dolj' , 'give' ),
852
		'GL' => __( 'Galati' , 'give' ),
853
		'GR' => __( 'Giurgiu' , 'give' ),
854
		'GJ' => __( 'Gorj' , 'give' ),
855
		'HR' => __( 'Harghita' , 'give' ),
856
		'HD' => __( 'Hunedoara' , 'give' ),
857
		'IL' => __( 'Ialomita' , 'give' ),
858
		'IS' => __( 'Iasi' , 'give' ),
859
		'IF' => __( 'Ilfov' , 'give' ),
860
		'MM' => __( 'Maramures' , 'give' ),
861
		'MH' => __( 'Mehedinti' , 'give' ),
862
		'MS' => __( 'Mures' , 'give' ),
863
		'NT' => __( 'Neamt' , 'give' ),
864
		'OT' => __( 'Olt' , 'give' ),
865
		'PH' => __( 'Prahova' , 'give' ),
866
		'SJ' => __( 'Salaj' , 'give' ),
867
		'SM' => __( 'Satu Mare' , 'give' ),
868
		'SB' => __( 'Sibiu' , 'give' ),
869
		'SV' => __( 'Suceava' , 'give' ),
870
		'TR' => __( 'Teleorman' , 'give' ),
871
		'TM' => __( 'Timis' , 'give' ),
872
		'TL' => __( 'Tulcea' , 'give' ),
873
		'VL' => __( 'Valcea' , 'give' ),
874
		'VS' => __( 'Vaslui' , 'give' ),
875
		'VN' => __( 'Vrancea' , 'give' ),
876
	);
877
	return apply_filters( 'give_romania_states', $states );
878
}
879
880
/**
881
 * Get Pakistan States
882
 *
883
 * @since 1.8.12
884
 * @return array $states A list of states
885
 */
886
function give_get_pakistan_states_list() {
887
	$states = array(
888
		''     => '',
889
		'JK' => __( 'Azad Kashmir', 'give' ),
890
		'BA' => __( 'Balochistan', 'give' ),
891
		'TA' => __( 'FATA', 'give' ),
892
		'GB' => __( 'Gilgit Baltistan', 'give' ),
893
		'IS' => __( 'Islamabad Capital Territory', 'give' ),
894
		'KP' => __( 'Khyber Pakhtunkhwa', 'give' ),
895
		'PB' => __( 'Punjab', 'give' ),
896
		'SD' => __( 'Sindh', 'give' ),
897
	);
898
	return apply_filters( 'give_pakistan_states', $states );
899
}
900
901
/**
902
 * Get Philippines States
903
 *
904
 * @since 1.8.12
905
 * @return array $states A list of states
906
 */
907
function give_get_philippines_states_list() {
908
	$states = array(
909
		''     => '',
910
		'ABR' => __( 'Abra', 'give' ),
911
		'AGN' => __( 'Agusan del Norte', 'give' ),
912
		'AGS' => __( 'Agusan del Sur', 'give' ),
913
		'AKL' => __( 'Aklan', 'give' ),
914
		'ALB' => __( 'Albay', 'give' ),
915
		'ANT' => __( 'Antique', 'give' ),
916
		'APA' => __( 'Apayao', 'give' ),
917
		'AUR' => __( 'Aurora', 'give' ),
918
		'BAS' => __( 'Basilan', 'give' ),
919
		'BAN' => __( 'Bataan', 'give' ),
920
		'BTN' => __( 'Batanes', 'give' ),
921
		'BTG' => __( 'Batangas', 'give' ),
922
		'BEN' => __( 'Benguet', 'give' ),
923
		'BIL' => __( 'Biliran', 'give' ),
924
		'BOH' => __( 'Bohol', 'give' ),
925
		'BUK' => __( 'Bukidnon', 'give' ),
926
		'BUL' => __( 'Bulacan', 'give' ),
927
		'CAG' => __( 'Cagayan', 'give' ),
928
		'CAN' => __( 'Camarines Norte', 'give' ),
929
		'CAS' => __( 'Camarines Sur', 'give' ),
930
		'CAM' => __( 'Camiguin', 'give' ),
931
		'CAP' => __( 'Capiz', 'give' ),
932
		'CAT' => __( 'Catanduanes', 'give' ),
933
		'CAV' => __( 'Cavite', 'give' ),
934
		'CEB' => __( 'Cebu', 'give' ),
935
		'COM' => __( 'Compostela Valley', 'give' ),
936
		'NCO' => __( 'Cotabato', 'give' ),
937
		'DAV' => __( 'Davao del Norte', 'give' ),
938
		'DAS' => __( 'Davao del Sur', 'give' ),
939
		'DAC' => __( 'Davao Occidental', 'give' ), // TODO: Needs to be updated when ISO code is assigned
940
		'DAO' => __( 'Davao Oriental', 'give' ),
941
		'DIN' => __( 'Dinagat Islands', 'give' ),
942
		'EAS' => __( 'Eastern Samar', 'give' ),
943
		'GUI' => __( 'Guimaras', 'give' ),
944
		'IFU' => __( 'Ifugao', 'give' ),
945
		'ILN' => __( 'Ilocos Norte', 'give' ),
946
		'ILS' => __( 'Ilocos Sur', 'give' ),
947
		'ILI' => __( 'Iloilo', 'give' ),
948
		'ISA' => __( 'Isabela', 'give' ),
949
		'KAL' => __( 'Kalinga', 'give' ),
950
		'LUN' => __( 'La Union', 'give' ),
951
		'LAG' => __( 'Laguna', 'give' ),
952
		'LAN' => __( 'Lanao del Norte', 'give' ),
953
		'LAS' => __( 'Lanao del Sur', 'give' ),
954
		'LEY' => __( 'Leyte', 'give' ),
955
		'MAG' => __( 'Maguindanao', 'give' ),
956
		'MAD' => __( 'Marinduque', 'give' ),
957
		'MAS' => __( 'Masbate', 'give' ),
958
		'MSC' => __( 'Misamis Occidental', 'give' ),
959
		'MSR' => __( 'Misamis Oriental', 'give' ),
960
		'MOU' => __( 'Mountain Province', 'give' ),
961
		'NEC' => __( 'Negros Occidental', 'give' ),
962
		'NER' => __( 'Negros Oriental', 'give' ),
963
		'NSA' => __( 'Northern Samar', 'give' ),
964
		'NUE' => __( 'Nueva Ecija', 'give' ),
965
		'NUV' => __( 'Nueva Vizcaya', 'give' ),
966
		'MDC' => __( 'Occidental Mindoro', 'give' ),
967
		'MDR' => __( 'Oriental Mindoro', 'give' ),
968
		'PLW' => __( 'Palawan', 'give' ),
969
		'PAM' => __( 'Pampanga', 'give' ),
970
		'PAN' => __( 'Pangasinan', 'give' ),
971
		'QUE' => __( 'Quezon', 'give' ),
972
		'QUI' => __( 'Quirino', 'give' ),
973
		'RIZ' => __( 'Rizal', 'give' ),
974
		'ROM' => __( 'Romblon', 'give' ),
975
		'WSA' => __( 'Samar', 'give' ),
976
		'SAR' => __( 'Sarangani', 'give' ),
977
		'SIQ' => __( 'Siquijor', 'give' ),
978
		'SOR' => __( 'Sorsogon', 'give' ),
979
		'SCO' => __( 'South Cotabato', 'give' ),
980
		'SLE' => __( 'Southern Leyte', 'give' ),
981
		'SUK' => __( 'Sultan Kudarat', 'give' ),
982
		'SLU' => __( 'Sulu', 'give' ),
983
		'SUN' => __( 'Surigao del Norte', 'give' ),
984
		'SUR' => __( 'Surigao del Sur', 'give' ),
985
		'TAR' => __( 'Tarlac', 'give' ),
986
		'TAW' => __( 'Tawi-Tawi', 'give' ),
987
		'ZMB' => __( 'Zambales', 'give' ),
988
		'ZAN' => __( 'Zamboanga del Norte', 'give' ),
989
		'ZAS' => __( 'Zamboanga del Sur', 'give' ),
990
		'ZSI' => __( 'Zamboanga Sibugay', 'give' ),
991
		'00'  => __( 'Metro Manila', 'give' ),
992
	);
993
	return apply_filters( 'give_philippines_states', $states );
994
}
995
996
/**
997
 * Get Peru States
998
 *
999
 * @since 1.8.12
1000
 * @return array $states A list of states
1001
 */
1002
function give_get_peru_states_list() {
1003
	$states = array(
1004
		''     => '',
1005
		'CAL' => __( 'El Callao', 'give' ),
1006
		'LMA' => __( 'Municipalidad Metropolitana de Lima', 'give' ),
1007
		'AMA' => __( 'Amazonas', 'give' ),
1008
		'ANC' => __( 'Ancash', 'give' ),
1009
		'APU' => __( 'Apur&iacute;mac', 'give' ),
1010
		'ARE' => __( 'Arequipa', 'give' ),
1011
		'AYA' => __( 'Ayacucho', 'give' ),
1012
		'CAJ' => __( 'Cajamarca', 'give' ),
1013
		'CUS' => __( 'Cusco', 'give' ),
1014
		'HUV' => __( 'Huancavelica', 'give' ),
1015
		'HUC' => __( 'Hu&aacute;nuco', 'give' ),
1016
		'ICA' => __( 'Ica', 'give' ),
1017
		'JUN' => __( 'Jun&iacute;n', 'give' ),
1018
		'LAL' => __( 'La Libertad', 'give' ),
1019
		'LAM' => __( 'Lambayeque', 'give' ),
1020
		'LIM' => __( 'Lima', 'give' ),
1021
		'LOR' => __( 'Loreto', 'give' ),
1022
		'MDD' => __( 'Madre de Dios', 'give' ),
1023
		'MOQ' => __( 'Moquegua', 'give' ),
1024
		'PAS' => __( 'Pasco', 'give' ),
1025
		'PIU' => __( 'Piura', 'give' ),
1026
		'PUN' => __( 'Puno', 'give' ),
1027
		'SAM' => __( 'San Mart&iacute;n', 'give' ),
1028
		'TAC' => __( 'Tacna', 'give' ),
1029
		'TUM' => __( 'Tumbes', 'give' ),
1030
		'UCA' => __( 'Ucayali', 'give' ),
1031
	);
1032
	return apply_filters( 'give_peru_states', $states );
1033
}
1034
1035
/**
1036
 * Get Nepal States
1037
 *
1038
 * @since 1.8.12
1039
 * @return array $states A list of states
1040
 */
1041
function give_get_nepal_states_list() {
1042
	$states = array(
1043
		''     => '',
1044
		'BAG' => __( 'Bagmati', 'give' ),
1045
		'BHE' => __( 'Bheri', 'give' ),
1046
		'DHA' => __( 'Dhaulagiri', 'give' ),
1047
		'GAN' => __( 'Gandaki', 'give' ),
1048
		'JAN' => __( 'Janakpur', 'give' ),
1049
		'KAR' => __( 'Karnali', 'give' ),
1050
		'KOS' => __( 'Koshi', 'give' ),
1051
		'LUM' => __( 'Lumbini', 'give' ),
1052
		'MAH' => __( 'Mahakali', 'give' ),
1053
		'MEC' => __( 'Mechi', 'give' ),
1054
		'NAR' => __( 'Narayani', 'give' ),
1055
		'RAP' => __( 'Rapti', 'give' ),
1056
		'SAG' => __( 'Sagarmatha', 'give' ),
1057
		'SET' => __( 'Seti', 'give' ),
1058
	);
1059
	return apply_filters( 'give_nepal_states', $states );
1060
}
1061
1062
/**
1063
 * Get Nigerian States
1064
 *
1065
 * @since 1.8.12
1066
 * @return array $states A list of states
1067
 */
1068
function give_get_nigerian_states_list() {
1069
	$states = array(
1070
		''     => '',
1071
		'AB' => __( 'Abia', 'give' ),
1072
		'FC' => __( 'Abuja', 'give' ),
1073
		'AD' => __( 'Adamawa', 'give' ),
1074
		'AK' => __( 'Akwa Ibom', 'give' ),
1075
		'AN' => __( 'Anambra', 'give' ),
1076
		'BA' => __( 'Bauchi', 'give' ),
1077
		'BY' => __( 'Bayelsa', 'give' ),
1078
		'BE' => __( 'Benue', 'give' ),
1079
		'BO' => __( 'Borno', 'give' ),
1080
		'CR' => __( 'Cross River', 'give' ),
1081
		'DE' => __( 'Delta', 'give' ),
1082
		'EB' => __( 'Ebonyi', 'give' ),
1083
		'ED' => __( 'Edo', 'give' ),
1084
		'EK' => __( 'Ekiti', 'give' ),
1085
		'EN' => __( 'Enugu', 'give' ),
1086
		'GO' => __( 'Gombe', 'give' ),
1087
		'IM' => __( 'Imo', 'give' ),
1088
		'JI' => __( 'Jigawa', 'give' ),
1089
		'KD' => __( 'Kaduna', 'give' ),
1090
		'KN' => __( 'Kano', 'give' ),
1091
		'KT' => __( 'Katsina', 'give' ),
1092
		'KE' => __( 'Kebbi', 'give' ),
1093
		'KO' => __( 'Kogi', 'give' ),
1094
		'KW' => __( 'Kwara', 'give' ),
1095
		'LA' => __( 'Lagos', 'give' ),
1096
		'NA' => __( 'Nasarawa', 'give' ),
1097
		'NI' => __( 'Niger', 'give' ),
1098
		'OG' => __( 'Ogun', 'give' ),
1099
		'ON' => __( 'Ondo', 'give' ),
1100
		'OS' => __( 'Osun', 'give' ),
1101
		'OY' => __( 'Oyo', 'give' ),
1102
		'PL' => __( 'Plateau', 'give' ),
1103
		'RI' => __( 'Rivers', 'give' ),
1104
		'SO' => __( 'Sokoto', 'give' ),
1105
		'TA' => __( 'Taraba', 'give' ),
1106
		'YO' => __( 'Yobe', 'give' ),
1107
		'ZA' => __( 'Zamfara', 'give' ),
1108
	);
1109
	return apply_filters( 'give_nigerian_states', $states );
1110
}
1111
1112
/**
1113
 * Get Mexico States
1114
 *
1115
 * @since 1.8.12
1116
 * @return array $states A list of states
1117
 */
1118
function give_get_mexico_states_list() {
1119
	$states = array(
1120
		''                      => '',
1121
		'Distrito Federal' 		=> __( 'Distrito Federal', 'give' ),
1122
		'Jalisco' 				=> __( 'Jalisco', 'give' ),
1123
		'Nuevo Leon' 			=> __( 'Nuevo León', 'give' ),
1124
		'Aguascalientes' 		=> __( 'Aguascalientes', 'give' ),
1125
		'Baja California' 		=> __( 'Baja California', 'give' ),
1126
		'Baja California Sur' 	=> __( 'Baja California Sur', 'give' ),
1127
		'Campeche' 				=> __( 'Campeche', 'give' ),
1128
		'Chiapas' 				=> __( 'Chiapas', 'give' ),
1129
		'Chihuahua' 			=> __( 'Chihuahua', 'give' ),
1130
		'Coahuila' 				=> __( 'Coahuila', 'give' ),
1131
		'Colima' 				=> __( 'Colima', 'give' ),
1132
		'Durango' 				=> __( 'Durango', 'give' ),
1133
		'Guanajuato' 			=> __( 'Guanajuato', 'give' ),
1134
		'Guerrero' 				=> __( 'Guerrero', 'give' ),
1135
		'Hidalgo' 				=> __( 'Hidalgo', 'give' ),
1136
		'Estado de Mexico' 		=> __( 'Edo. de México', 'give' ),
1137
		'Michoacan' 			=> __( 'Michoacán', 'give' ),
1138
		'Morelos' 				=> __( 'Morelos', 'give' ),
1139
		'Nayarit' 				=> __( 'Nayarit', 'give' ),
1140
		'Oaxaca' 				=> __( 'Oaxaca', 'give' ),
1141
		'Puebla' 				=> __( 'Puebla', 'give' ),
1142
		'Queretaro' 			=> __( 'Querétaro', 'give' ),
1143
		'Quintana Roo' 			=> __( 'Quintana Roo', 'give' ),
1144
		'San Luis Potosi' 		=> __( 'San Luis Potosí', 'give' ),
1145
		'Sinaloa' 				=> __( 'Sinaloa', 'give' ),
1146
		'Sonora' 				=> __( 'Sonora', 'give' ),
1147
		'Tabasco' 				=> __( 'Tabasco', 'give' ),
1148
		'Tamaulipas' 			=> __( 'Tamaulipas', 'give' ),
1149
		'Tlaxcala' 				=> __( 'Tlaxcala', 'give' ),
1150
		'Veracruz' 				=> __( 'Veracruz', 'give' ),
1151
		'Yucatan' 				=> __( 'Yucatán', 'give' ),
1152
		'Zacatecas' 			=> __( 'Zacatecas', 'give' ),
1153
	);
1154
	return apply_filters( 'give_mexico_states', $states );
1155
}
1156
1157
/**
1158
 * Get Japan States
1159
 *
1160
 * @since 1.8.12
1161
 * @return array $states A list of states
1162
 */
1163
function give_get_japan_states_list() {
1164
	$states = array(
1165
		''     => '',
1166
		'JP01' => __( 'Hokkaido', 'give' ),
1167
		'JP02' => __( 'Aomori', 'give' ),
1168
		'JP03' => __( 'Iwate', 'give' ),
1169
		'JP04' => __( 'Miyagi', 'give' ),
1170
		'JP05' => __( 'Akita', 'give' ),
1171
		'JP06' => __( 'Yamagata', 'give' ),
1172
		'JP07' => __( 'Fukushima', 'give' ),
1173
		'JP08' => __( 'Ibaraki', 'give' ),
1174
		'JP09' => __( 'Tochigi', 'give' ),
1175
		'JP10' => __( 'Gunma', 'give' ),
1176
		'JP11' => __( 'Saitama', 'give' ),
1177
		'JP12' => __( 'Chiba', 'give' ),
1178
		'JP13' => __( 'Tokyo', 'give' ),
1179
		'JP14' => __( 'Kanagawa', 'give' ),
1180
		'JP15' => __( 'Niigata', 'give' ),
1181
		'JP16' => __( 'Toyama', 'give' ),
1182
		'JP17' => __( 'Ishikawa', 'give' ),
1183
		'JP18' => __( 'Fukui', 'give' ),
1184
		'JP19' => __( 'Yamanashi', 'give' ),
1185
		'JP20' => __( 'Nagano', 'give' ),
1186
		'JP21' => __( 'Gifu', 'give' ),
1187
		'JP22' => __( 'Shizuoka', 'give' ),
1188
		'JP23' => __( 'Aichi', 'give' ),
1189
		'JP24' => __( 'Mie', 'give' ),
1190
		'JP25' => __( 'Shiga', 'give' ),
1191
		'JP26' => __( 'Kyoto', 'give' ),
1192
		'JP27' => __( 'Osaka', 'give' ),
1193
		'JP28' => __( 'Hyogo', 'give' ),
1194
		'JP29' => __( 'Nara', 'give' ),
1195
		'JP30' => __( 'Wakayama', 'give' ),
1196
		'JP31' => __( 'Tottori', 'give' ),
1197
		'JP32' => __( 'Shimane', 'give' ),
1198
		'JP33' => __( 'Okayama', 'give' ),
1199
		'JP34' => __( 'Hiroshima', 'give' ),
1200
		'JP35' => __( 'Yamaguchi', 'give' ),
1201
		'JP36' => __( 'Tokushima', 'give' ),
1202
		'JP37' => __( 'Kagawa', 'give' ),
1203
		'JP38' => __( 'Ehime', 'give' ),
1204
		'JP39' => __( 'Kochi', 'give' ),
1205
		'JP40' => __( 'Fukuoka', 'give' ),
1206
		'JP41' => __( 'Saga', 'give' ),
1207
		'JP42' => __( 'Nagasaki', 'give' ),
1208
		'JP43' => __( 'Kumamoto', 'give' ),
1209
		'JP44' => __( 'Oita', 'give' ),
1210
		'JP45' => __( 'Miyazaki', 'give' ),
1211
		'JP46' => __( 'Kagoshima', 'give' ),
1212
		'JP47' => __( 'Okinawa', 'give' ),
1213
	);
1214
	return apply_filters( 'give_japan_states', $states );
1215
}
1216
1217
/**
1218
 * Get Italy States
1219
 *
1220
 * @since 1.8.12
1221
 * @return array $states A list of states
1222
 */
1223
function give_get_italy_states_list() {
1224
	$states = array(
1225
		''     => '',
1226
		'AG' => __( 'Agrigento', 'give' ),
1227
		'AL' => __( 'Alessandria', 'give' ),
1228
		'AN' => __( 'Ancona', 'give' ),
1229
		'AO' => __( 'Aosta', 'give' ),
1230
		'AR' => __( 'Arezzo', 'give' ),
1231
		'AP' => __( 'Ascoli Piceno', 'give' ),
1232
		'AT' => __( 'Asti', 'give' ),
1233
		'AV' => __( 'Avellino', 'give' ),
1234
		'BA' => __( 'Bari', 'give' ),
1235
		'BT' => __( 'Barletta-Andria-Trani', 'give' ),
1236
		'BL' => __( 'Belluno', 'give' ),
1237
		'BN' => __( 'Benevento', 'give' ),
1238
		'BG' => __( 'Bergamo', 'give' ),
1239
		'BI' => __( 'Biella', 'give' ),
1240
		'BO' => __( 'Bologna', 'give' ),
1241
		'BZ' => __( 'Bolzano', 'give' ),
1242
		'BS' => __( 'Brescia', 'give' ),
1243
		'BR' => __( 'Brindisi', 'give' ),
1244
		'CA' => __( 'Cagliari', 'give' ),
1245
		'CL' => __( 'Caltanissetta', 'give' ),
1246
		'CB' => __( 'Campobasso', 'give' ),
1247
		'CI' => __( 'Carbonia-Iglesias', 'give' ),
1248
		'CE' => __( 'Caserta', 'give' ),
1249
		'CT' => __( 'Catania', 'give' ),
1250
		'CZ' => __( 'Catanzaro', 'give' ),
1251
		'CH' => __( 'Chieti', 'give' ),
1252
		'CO' => __( 'Como', 'give' ),
1253
		'CS' => __( 'Cosenza', 'give' ),
1254
		'CR' => __( 'Cremona', 'give' ),
1255
		'KR' => __( 'Crotone', 'give' ),
1256
		'CN' => __( 'Cuneo', 'give' ),
1257
		'EN' => __( 'Enna', 'give' ),
1258
		'FM' => __( 'Fermo', 'give' ),
1259
		'FE' => __( 'Ferrara', 'give' ),
1260
		'FI' => __( 'Firenze', 'give' ),
1261
		'FG' => __( 'Foggia', 'give' ),
1262
		'FC' => __( 'Forlì-Cesena', 'give' ),
1263
		'FR' => __( 'Frosinone', 'give' ),
1264
		'GE' => __( 'Genova', 'give' ),
1265
		'GO' => __( 'Gorizia', 'give' ),
1266
		'GR' => __( 'Grosseto', 'give' ),
1267
		'IM' => __( 'Imperia', 'give' ),
1268
		'IS' => __( 'Isernia', 'give' ),
1269
		'SP' => __( 'La Spezia', 'give' ),
1270
		'AQ' => __( "L'Aquila", 'give' ),
1271
		'LT' => __( 'Latina', 'give' ),
1272
		'LE' => __( 'Lecce', 'give' ),
1273
		'LC' => __( 'Lecco', 'give' ),
1274
		'LI' => __( 'Livorno', 'give' ),
1275
		'LO' => __( 'Lodi', 'give' ),
1276
		'LU' => __( 'Lucca', 'give' ),
1277
		'MC' => __( 'Macerata', 'give' ),
1278
		'MN' => __( 'Mantova', 'give' ),
1279
		'MS' => __( 'Massa-Carrara', 'give' ),
1280
		'MT' => __( 'Matera', 'give' ),
1281
		'ME' => __( 'Messina', 'give' ),
1282
		'MI' => __( 'Milano', 'give' ),
1283
		'MO' => __( 'Modena', 'give' ),
1284
		'MB' => __( 'Monza e della Brianza', 'give' ),
1285
		'NA' => __( 'Napoli', 'give' ),
1286
		'NO' => __( 'Novara', 'give' ),
1287
		'NU' => __( 'Nuoro', 'give' ),
1288
		'OT' => __( 'Olbia-Tempio', 'give' ),
1289
		'OR' => __( 'Oristano', 'give' ),
1290
		'PD' => __( 'Padova', 'give' ),
1291
		'PA' => __( 'Palermo', 'give' ),
1292
		'PR' => __( 'Parma', 'give' ),
1293
		'PV' => __( 'Pavia', 'give' ),
1294
		'PG' => __( 'Perugia', 'give' ),
1295
		'PU' => __( 'Pesaro e Urbino', 'give' ),
1296
		'PE' => __( 'Pescara', 'give' ),
1297
		'PC' => __( 'Piacenza', 'give' ),
1298
		'PI' => __( 'Pisa', 'give' ),
1299
		'PT' => __( 'Pistoia', 'give' ),
1300
		'PN' => __( 'Pordenone', 'give' ),
1301
		'PZ' => __( 'Potenza', 'give' ),
1302
		'PO' => __( 'Prato', 'give' ),
1303
		'RG' => __( 'Ragusa', 'give' ),
1304
		'RA' => __( 'Ravenna', 'give' ),
1305
		'RC' => __( 'Reggio Calabria', 'give' ),
1306
		'RE' => __( 'Reggio Emilia', 'give' ),
1307
		'RI' => __( 'Rieti', 'give' ),
1308
		'RN' => __( 'Rimini', 'give' ),
1309
		'RM' => __( 'Roma', 'give' ),
1310
		'RO' => __( 'Rovigo', 'give' ),
1311
		'SA' => __( 'Salerno', 'give' ),
1312
		'VS' => __( 'Medio Campidano', 'give' ),
1313
		'SS' => __( 'Sassari', 'give' ),
1314
		'SV' => __( 'Savona', 'give' ),
1315
		'SI' => __( 'Siena', 'give' ),
1316
		'SR' => __( 'Siracusa', 'give' ),
1317
		'SO' => __( 'Sondrio', 'give' ),
1318
		'TA' => __( 'Taranto', 'give' ),
1319
		'TE' => __( 'Teramo', 'give' ),
1320
		'TR' => __( 'Terni', 'give' ),
1321
		'TO' => __( 'Torino', 'give' ),
1322
		'OG' => __( 'Ogliastra', 'give' ),
1323
		'TP' => __( 'Trapani', 'give' ),
1324
		'TN' => __( 'Trento', 'give' ),
1325
		'TV' => __( 'Treviso', 'give' ),
1326
		'TS' => __( 'Trieste', 'give' ),
1327
		'UD' => __( 'Udine', 'give' ),
1328
		'VA' => __( 'Varese', 'give' ),
1329
		'VE' => __( 'Venezia', 'give' ),
1330
		'VB' => __( 'Verbano-Cusio-Ossola', 'give' ),
1331
		'VC' => __( 'Vercelli', 'give' ),
1332
		'VR' => __( 'Verona', 'give' ),
1333
		'VV' => __( 'Vibo Valentia', 'give' ),
1334
		'VI' => __( 'Vicenza', 'give' ),
1335
		'VT' => __( 'Viterbo', 'give' ),
1336
	);
1337
	return apply_filters( 'give_italy_states', $states );
1338
}
1339
1340
/**
1341
 * Get Iran States
1342
 *
1343
 * @since 1.8.12
1344
 * @return array $states A list of states
1345
 */
1346
function give_get_iran_states_list() {
1347
	$states = array(
1348
		''     => '',
1349
		'KHZ' => __( 'Khuzestan  (خوزستان)', 'give' ),
1350
		'THR' => __( 'Tehran  (تهران)', 'give' ),
1351
		'ILM' => __( 'Ilaam (ایلام)', 'give' ),
1352
		'BHR' => __( 'Bushehr (بوشهر)', 'give' ),
1353
		'ADL' => __( 'Ardabil (اردبیل)', 'give' ),
1354
		'ESF' => __( 'Isfahan (اصفهان)', 'give' ),
1355
		'YZD' => __( 'Yazd (یزد)', 'give' ),
1356
		'KRH' => __( 'Kermanshah (کرمانشاه)', 'give' ),
1357
		'KRN' => __( 'Kerman (کرمان)', 'give' ),
1358
		'HDN' => __( 'Hamadan (همدان)', 'give' ),
1359
		'GZN' => __( 'Ghazvin (قزوین)', 'give' ),
1360
		'ZJN' => __( 'Zanjan (زنجان)', 'give' ),
1361
		'LRS' => __( 'Luristan (لرستان)', 'give' ),
1362
		'ABZ' => __( 'Alborz (البرز)', 'give' ),
1363
		'EAZ' => __( 'East Azarbaijan (آذربایجان شرقی)', 'give' ),
1364
		'WAZ' => __( 'West Azarbaijan (آذربایجان غربی)', 'give' ),
1365
		'CHB' => __( 'Chaharmahal and Bakhtiari (چهارمحال و بختیاری)', 'give' ),
1366
		'SKH' => __( 'South Khorasan (خراسان جنوبی)', 'give' ),
1367
		'RKH' => __( 'Razavi Khorasan (خراسان رضوی)', 'give' ),
1368
		'NKH' => __( 'North Khorasan (خراسان جنوبی)', 'give' ),
1369
		'SMN' => __( 'Semnan (سمنان)', 'give' ),
1370
		'FRS' => __( 'Fars (فارس)', 'give' ),
1371
		'QHM' => __( 'Qom (قم)', 'give' ),
1372
		'KRD' => __( 'Kurdistan / کردستان)', 'give' ),
1373
		'KBD' => __( 'Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)', 'give' ),
1374
		'GLS' => __( 'Golestan (گلستان)', 'give' ),
1375
		'GIL' => __( 'Gilan (گیلان)', 'give' ),
1376
		'MZN' => __( 'Mazandaran (مازندران)', 'give' ),
1377
		'MKZ' => __( 'Markazi (مرکزی)', 'give' ),
1378
		'HRZ' => __( 'Hormozgan (هرمزگان)', 'give' ),
1379
		'SBN' => __( 'Sistan and Baluchestan (سیستان و بلوچستان)', 'give' ),
1380
	);
1381
	return apply_filters( 'give_iran_states', $states );
1382
}
1383
1384
/**
1385
 * Get Ireland States
1386
 *
1387
 * @since 1.8.12
1388
 * @return array $states A list of states
1389
 */
1390
function give_get_ireland_states_list() {
1391
	$states = array(
1392
		''     => '',
1393
		'CE' => __( 'Clare', 'give' ),
1394
		'CK' => __( 'Cork', 'give' ),
1395
		'CN' => __( 'Cavan', 'give' ),
1396
		'CW' => __( 'Carlow', 'give' ),
1397
		'DL' => __( 'Donegal', 'give' ),
1398
		'DN' => __( 'Dublin', 'give' ),
1399
		'GY' => __( 'Galway', 'give' ),
1400
		'KE' => __( 'Kildare', 'give' ),
1401
		'KK' => __( 'Kilkenny', 'give' ),
1402
		'KY' => __( 'Kerry', 'give' ),
1403
		'LD' => __( 'Longford', 'give' ),
1404
		'LH' => __( 'Louth', 'give' ),
1405
		'LK' => __( 'Limerick', 'give' ),
1406
		'LM' => __( 'Leitrim', 'give' ),
1407
		'LS' => __( 'Laois', 'give' ),
1408
		'MH' => __( 'Meath', 'give' ),
1409
		'MN' => __( 'Monaghan', 'give' ),
1410
		'MO' => __( 'Mayo', 'give' ),
1411
		'OY' => __( 'Offaly', 'give' ),
1412
		'RN' => __( 'Roscommon', 'give' ),
1413
		'SO' => __( 'Sligo', 'give' ),
1414
		'TY' => __( 'Tipperary', 'give' ),
1415
		'WD' => __( 'Waterford', 'give' ),
1416
		'WH' => __( 'Westmeath', 'give' ),
1417
		'WW' => __( 'Wicklow', 'give' ),
1418
		'WX' => __( 'Wexford', 'give' ),
1419
	);
1420
	return apply_filters( 'give_ireland_states', $states );
1421
}
1422
1423
/**
1424
 * Get Greek States
1425
 *
1426
 * @since 1.8.12
1427
 * @return array $states A list of states
1428
 */
1429
function give_get_greek_states_list() {
1430
	$states = array(
1431
		''     => '',
1432
		'I' => __( 'Αττική', 'give' ),
1433
		'A' => __( 'Ανατολική Μακεδονία και Θράκη', 'give' ),
1434
		'B' => __( 'Κεντρική Μακεδονία', 'give' ),
1435
		'C' => __( 'Δυτική Μακεδονία', 'give' ),
1436
		'D' => __( 'Ήπειρος', 'give' ),
1437
		'E' => __( 'Θεσσαλία', 'give' ),
1438
		'F' => __( 'Ιόνιοι Νήσοι', 'give' ),
1439
		'G' => __( 'Δυτική Ελλάδα', 'give' ),
1440
		'H' => __( 'Στερεά Ελλάδα', 'give' ),
1441
		'J' => __( 'Πελοπόννησος', 'give' ),
1442
		'K' => __( 'Βόρειο Αιγαίο', 'give' ),
1443
		'L' => __( 'Νότιο Αιγαίο', 'give' ),
1444
		'M' => __( 'Κρήτη', 'give' ),
1445
	);
1446
	return apply_filters( 'give_greek_states', $states );
1447
}
1448
1449
/**
1450
 * Get bolivian States
1451
 *
1452
 * @since 1.8.12
1453
 * @return array $states A list of states
1454
 */
1455
function give_get_bolivian_states_list() {
1456
	$states = array(
1457
		''     => '',
1458
		'B' => __( 'Chuquisaca', 'give' ),
1459
		'H' => __( 'Beni', 'give' ),
1460
		'C' => __( 'Cochabamba', 'give' ),
1461
		'L' => __( 'La Paz', 'give' ),
1462
		'O' => __( 'Oruro', 'give' ),
1463
		'N' => __( 'Pando', 'give' ),
1464
		'P' => __( 'Potosí', 'give' ),
1465
		'S' => __( 'Santa Cruz', 'give' ),
1466
		'T' => __( 'Tarija', 'give' ),
1467
	);
1468
	return apply_filters( 'give_bolivian_states', $states );
1469
}
1470
1471
/**
1472
 * Get Bulgarian States
1473
 *
1474
 * @since 1.8.12
1475
 * @return array $states A list of states
1476
 */
1477
function give_get_bulgarian_states_list() {
1478
	$states = array(
1479
		''     => '',
1480
		'BG-01' => __( 'Blagoevgrad', 'give' ),
1481
		'BG-02' => __( 'Burgas', 'give' ),
1482
		'BG-08' => __( 'Dobrich', 'give' ),
1483
		'BG-07' => __( 'Gabrovo', 'give' ),
1484
		'BG-26' => __( 'Haskovo', 'give' ),
1485
		'BG-09' => __( 'Kardzhali', 'give' ),
1486
		'BG-10' => __( 'Kyustendil', 'give' ),
1487
		'BG-11' => __( 'Lovech', 'give' ),
1488
		'BG-12' => __( 'Montana', 'give' ),
1489
		'BG-13' => __( 'Pazardzhik', 'give' ),
1490
		'BG-14' => __( 'Pernik', 'give' ),
1491
		'BG-15' => __( 'Pleven', 'give' ),
1492
		'BG-16' => __( 'Plovdiv', 'give' ),
1493
		'BG-17' => __( 'Razgrad', 'give' ),
1494
		'BG-18' => __( 'Ruse', 'give' ),
1495
		'BG-27' => __( 'Shumen', 'give' ),
1496
		'BG-19' => __( 'Silistra', 'give' ),
1497
		'BG-20' => __( 'Sliven', 'give' ),
1498
		'BG-21' => __( 'Smolyan', 'give' ),
1499
		'BG-23' => __( 'Sofia', 'give' ),
1500
		'BG-22' => __( 'Sofia-Grad', 'give' ),
1501
		'BG-24' => __( 'Stara Zagora', 'give' ),
1502
		'BG-25' => __( 'Targovishte', 'give' ),
1503
		'BG-03' => __( 'Varna', 'give' ),
1504
		'BG-04' => __( 'Veliko Tarnovo', 'give' ),
1505
		'BG-05' => __( 'Vidin', 'give' ),
1506
		'BG-06' => __( 'Vratsa', 'give' ),
1507
		'BG-28' => __( 'Yambol', 'give' ),
1508
	);
1509
	return apply_filters( 'give_bulgarian_states', $states );
1510
}
1511
1512
/**
1513
 * Get Bangladeshi States
1514
 *
1515
 * @since 1.8.12.
1516
 * @return array $states A list of states
1517
 */
1518
function give_get_bangladeshi_states_list() {
1519
	$states = array(
1520
		''	=> '',
1521
		'BAG'  => __( 'Bagerhat', 'give' ),
1522
		'BAN'  => __( 'Bandarban', 'give' ),
1523
		'BAR'  => __( 'Barguna', 'give' ),
1524
		'BARI' => __( 'Barisal', 'give' ),
1525
		'BHO'  => __( 'Bhola', 'give' ),
1526
		'BOG'  => __( 'Bogra', 'give' ),
1527
		'BRA'  => __( 'Brahmanbaria', 'give' ),
1528
		'CHA'  => __( 'Chandpur', 'give' ),
1529
		'CHI'  => __( 'Chittagong', 'give' ),
1530
		'CHU'  => __( 'Chuadanga', 'give' ),
1531
		'COM'  => __( 'Comilla', 'give' ),
1532
		'COX'  => __( "Cox's Bazar", 'give' ),
1533
		'DHA'  => __( 'Dhaka', 'give' ),
1534
		'DIN'  => __( 'Dinajpur', 'give' ),
1535
		'FAR'  => __( 'Faridpur ', 'give' ),
1536
		'FEN'  => __( 'Feni', 'give' ),
1537
		'GAI'  => __( 'Gaibandha', 'give' ),
1538
		'GAZI' => __( 'Gazipur', 'give' ),
1539
		'GOP'  => __( 'Gopalganj', 'give' ),
1540
		'HAB'  => __( 'Habiganj', 'give' ),
1541
		'JAM'  => __( 'Jamalpur', 'give' ),
1542
		'JES'  => __( 'Jessore', 'give' ),
1543
		'JHA'  => __( 'Jhalokati', 'give' ),
1544
		'JHE'  => __( 'Jhenaidah', 'give' ),
1545
		'JOY'  => __( 'Joypurhat', 'give' ),
1546
		'KHA'  => __( 'Khagrachhari', 'give' ),
1547
		'KHU'  => __( 'Khulna', 'give' ),
1548
		'KIS'  => __( 'Kishoreganj', 'give' ),
1549
		'KUR'  => __( 'Kurigram', 'give' ),
1550
		'KUS'  => __( 'Kushtia', 'give' ),
1551
		'LAK'  => __( 'Lakshmipur', 'give' ),
1552
		'LAL'  => __( 'Lalmonirhat', 'give' ),
1553
		'MAD'  => __( 'Madaripur', 'give' ),
1554
		'MAG'  => __( 'Magura', 'give' ),
1555
		'MAN'  => __( 'Manikganj ', 'give' ),
1556
		'MEH'  => __( 'Meherpur', 'give' ),
1557
		'MOU'  => __( 'Moulvibazar', 'give' ),
1558
		'MUN'  => __( 'Munshiganj', 'give' ),
1559
		'MYM'  => __( 'Mymensingh', 'give' ),
1560
		'NAO'  => __( 'Naogaon', 'give' ),
1561
		'NAR'  => __( 'Narail', 'give' ),
1562
		'NARG' => __( 'Narayanganj', 'give' ),
1563
		'NARD' => __( 'Narsingdi', 'give' ),
1564
		'NAT'  => __( 'Natore', 'give' ),
1565
		'NAW'  => __( 'Nawabganj', 'give' ),
1566
		'NET'  => __( 'Netrakona', 'give' ),
1567
		'NIL'  => __( 'Nilphamari', 'give' ),
1568
		'NOA'  => __( 'Noakhali', 'give' ),
1569
		'PAB'  => __( 'Pabna', 'give' ),
1570
		'PAN'  => __( 'Panchagarh', 'give' ),
1571
		'PAT'  => __( 'Patuakhali', 'give' ),
1572
		'PIR'  => __( 'Pirojpur', 'give' ),
1573
		'RAJB' => __( 'Rajbari', 'give' ),
1574
		'RAJ'  => __( 'Rajshahi', 'give' ),
1575
		'RAN'  => __( 'Rangamati', 'give' ),
1576
		'RANP' => __( 'Rangpur', 'give' ),
1577
		'SAT'  => __( 'Satkhira', 'give' ),
1578
		'SHA'  => __( 'Shariatpur', 'give' ),
1579
		'SHE'  => __( 'Sherpur', 'give' ),
1580
		'SIR'  => __( 'Sirajganj', 'give' ),
1581
		'SUN'  => __( 'Sunamganj', 'give' ),
1582
		'SYL'  => __( 'Sylhet', 'give' ),
1583
		'TAN'  => __( 'Tangail', 'give' ),
1584
		'THA'  => __( 'Thakurgaon', 'give' ),
1585
	);
1586
	return apply_filters( 'give_bangladeshi_states', $states );
1587
}
1588
1589
/**
1590
 * Get Argentina States
1591
 *
1592
 * @since 1.8.12
1593
 * @return array $states A list of states
1594
 */
1595
function give_get_argentina_states_list() {
1596
	$states = array(
1597
		''  => '',
1598
		'C' => __( 'Ciudad Aut&oacute;noma de Buenos Aires', 'give' ),
1599
		'B' => __( 'Buenos Aires', 'give' ),
1600
		'K' => __( 'Catamarca', 'give' ),
1601
		'H' => __( 'Chaco', 'give' ),
1602
		'U' => __( 'Chubut', 'give' ),
1603
		'X' => __( 'C&oacute;rdoba', 'give' ),
1604
		'W' => __( 'Corrientes', 'give' ),
1605
		'E' => __( 'Entre R&iacute;os', 'give' ),
1606
		'P' => __( 'Formosa', 'give' ),
1607
		'Y' => __( 'Jujuy', 'give' ),
1608
		'L' => __( 'La Pampa', 'give' ),
1609
		'F' => __( 'La Rioja', 'give' ),
1610
		'M' => __( 'Mendoza', 'give' ),
1611
		'N' => __( 'Misiones', 'give' ),
1612
		'Q' => __( 'Neuqu&eacute;n', 'give' ),
1613
		'R' => __( 'R&iacute;o Negro', 'give' ),
1614
		'A' => __( 'Salta', 'give' ),
1615
		'J' => __( 'San Juan', 'give' ),
1616
		'D' => __( 'San Luis', 'give' ),
1617
		'Z' => __( 'Santa Cruz', 'give' ),
1618
		'S' => __( 'Santa Fe', 'give' ),
1619
		'G' => __( 'Santiago del Estero', 'give' ),
1620
		'V' => __( 'Tierra del Fuego', 'give' ),
1621
		'T' => __( 'Tucum&aacute;n', 'give' ),
1622
	);
1623
	return apply_filters( 'give_argentina_states', $states );
1624
}
1625
1626
/**
1627
 * Get States List
1628
 *
1629
 * @access      public
1630
 * @since       1.2
1631
 * @return      array
1632
 */
1633
function give_get_states_list() {
1634
	$states = array(
1635
		''   => '',
1636
		'AL' => 'Alabama',
1637
		'AK' => 'Alaska',
1638
		'AZ' => 'Arizona',
1639
		'AR' => 'Arkansas',
1640
		'CA' => 'California',
1641
		'CO' => 'Colorado',
1642
		'CT' => 'Connecticut',
1643
		'DE' => 'Delaware',
1644
		'DC' => 'District of Columbia',
1645
		'FL' => 'Florida',
1646
		'GA' => 'Georgia',
1647
		'HI' => 'Hawaii',
1648
		'ID' => 'Idaho',
1649
		'IL' => 'Illinois',
1650
		'IN' => 'Indiana',
1651
		'IA' => 'Iowa',
1652
		'KS' => 'Kansas',
1653
		'KY' => 'Kentucky',
1654
		'LA' => 'Louisiana',
1655
		'ME' => 'Maine',
1656
		'MD' => 'Maryland',
1657
		'MA' => 'Massachusetts',
1658
		'MI' => 'Michigan',
1659
		'MN' => 'Minnesota',
1660
		'MS' => 'Mississippi',
1661
		'MO' => 'Missouri',
1662
		'MT' => 'Montana',
1663
		'NE' => 'Nebraska',
1664
		'NV' => 'Nevada',
1665
		'NH' => 'New Hampshire',
1666
		'NJ' => 'New Jersey',
1667
		'NM' => 'New Mexico',
1668
		'NY' => 'New York',
1669
		'NC' => 'North Carolina',
1670
		'ND' => 'North Dakota',
1671
		'OH' => 'Ohio',
1672
		'OK' => 'Oklahoma',
1673
		'OR' => 'Oregon',
1674
		'PA' => 'Pennsylvania',
1675
		'RI' => 'Rhode Island',
1676
		'SC' => 'South Carolina',
1677
		'SD' => 'South Dakota',
1678
		'TN' => 'Tennessee',
1679
		'TX' => 'Texas',
1680
		'UT' => 'Utah',
1681
		'VT' => 'Vermont',
1682
		'VA' => 'Virginia',
1683
		'WA' => 'Washington',
1684
		'WV' => 'West Virginia',
1685
		'WI' => 'Wisconsin',
1686
		'WY' => 'Wyoming',
1687
		'AS' => 'American Samoa',
1688
		'CZ' => 'Canal Zone',
1689
		'CM' => 'Commonwealth of the Northern Mariana Islands',
1690
		'FM' => 'Federated States of Micronesia',
1691
		'GU' => 'Guam',
1692
		'MH' => 'Marshall Islands',
1693
		'MP' => 'Northern Mariana Islands',
1694
		'PW' => 'Palau',
1695
		'PI' => 'Philippine Islands',
1696
		'PR' => 'Puerto Rico',
1697
		'TT' => 'Trust Territory of the Pacific Islands',
1698
		'VI' => 'Virgin Islands',
1699
		'AA' => 'Armed Forces - Americas',
1700
		'AE' => 'Armed Forces - Europe, Canada, Middle East, Africa',
1701
		'AP' => 'Armed Forces - Pacific'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1702
	);
1703
1704
	return apply_filters( 'give_us_states', $states );
1705
}
1706
1707
/**
1708
 * Get Provinces List
1709
 *
1710
 * @access      public
1711
 * @since       1.0
1712
 * @return      array
1713
 */
1714
function give_get_provinces_list() {
1715
	$provinces = array(
1716
		''   => '',
1717
		'AB' => esc_html__('Alberta', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1718
		'BC' => esc_html__('British Columbia', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1719
		'MB' => esc_html__('Manitoba', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1720
		'NB' => esc_html__('New Brunswick', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1721
		'NL' => esc_html__('Newfoundland and Labrador', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1722
		'NS' => esc_html__('Nova Scotia', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1723
		'NT' => esc_html__('Northwest Territories', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1724
		'NU' => esc_html__('Nunavut', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1725
		'ON' => esc_html__('Ontario', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1726
		'PE' => esc_html__('Prince Edward Island', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1727
		'QC' => esc_html__('Quebec', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1728
		'SK' => esc_html__('Saskatchewan', 'give' ),
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1729
		'YT' => esc_html__('Yukon', 'give' )
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening bracket; 0 found
Loading history...
1730
	);
1731
1732
	return apply_filters( 'give_canada_provinces', $provinces );
1733
}
1734
1735
/**
1736
 * Get Australian States
1737
 *
1738
 * @since 1.0
1739
 * @return array $states A list of states
1740
 */
1741
function give_get_australian_states_list() {
1742
	$states = array(
1743
		''    => '',
1744
		'ACT' => 'Australian Capital Territory',
1745
		'NSW' => 'New South Wales',
1746
		'NT'  => 'Northern Territory',
1747
		'QLD' => 'Queensland',
1748
		'SA'  => 'South Australia',
1749
		'TAS' => 'Tasmania',
1750
		'VIC' => 'Victoria',
1751
		'WA'  => 'Western Australia'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1752
	);
1753
1754
	return apply_filters( 'give_australian_states', $states );
1755
}
1756
1757
/**
1758
 * Get Brazil States
1759
 *
1760
 * @since 1.0
1761
 * @return array $states A list of states
1762
 */
1763
function give_get_brazil_states_list() {
1764
	$states = array(
1765
		''   => '',
1766
		'AC' => 'Acre',
1767
		'AL' => 'Alagoas',
1768
		'AP' => 'Amap&aacute;',
1769
		'AM' => 'Amazonas',
1770
		'BA' => 'Bahia',
1771
		'CE' => 'Cear&aacute;',
1772
		'DF' => 'Distrito Federal',
1773
		'ES' => 'Esp&iacute;rito Santo',
1774
		'GO' => 'Goi&aacute;s',
1775
		'MA' => 'Maranh&atilde;o',
1776
		'MT' => 'Mato Grosso',
1777
		'MS' => 'Mato Grosso do Sul',
1778
		'MG' => 'Minas Gerais',
1779
		'PA' => 'Par&aacute;',
1780
		'PB' => 'Para&iacute;ba',
1781
		'PR' => 'Paran&aacute;',
1782
		'PE' => 'Pernambuco',
1783
		'PI' => 'Piau&iacute;',
1784
		'RJ' => 'Rio de Janeiro',
1785
		'RN' => 'Rio Grande do Norte',
1786
		'RS' => 'Rio Grande do Sul',
1787
		'RO' => 'Rond&ocirc;nia',
1788
		'RR' => 'Roraima',
1789
		'SC' => 'Santa Catarina',
1790
		'SP' => 'S&atilde;o Paulo',
1791
		'SE' => 'Sergipe',
1792
		'TO' => 'Tocantins'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1793
	);
1794
1795
	return apply_filters( 'give_brazil_states', $states );
1796
}
1797
1798
/**
1799
 * Get Hong Kong States
1800
 *
1801
 * @since 1.0
1802
 * @return array $states A list of states
1803
 */
1804
function give_get_hong_kong_states_list() {
1805
	$states = array(
1806
		''                => '',
1807
		'HONG KONG'       => 'Hong Kong Island',
1808
		'KOWLOON'         => 'Kowloon',
1809
		'NEW TERRITORIES' => 'New Territories'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1810
	);
1811
1812
	return apply_filters( 'give_hong_kong_states', $states );
1813
}
1814
1815
/**
1816
 * Get Hungary States
1817
 *
1818
 * @since 1.0
1819
 * @return array $states A list of states
1820
 */
1821
function give_get_hungary_states_list() {
1822
	$states = array(
1823
		''   => '',
1824
		'BK' => 'Bács-Kiskun',
1825
		'BE' => 'Békés',
1826
		'BA' => 'Baranya',
1827
		'BZ' => 'Borsod-Abaúj-Zemplén',
1828
		'BU' => 'Budapest',
1829
		'CS' => 'Csongrád',
1830
		'FE' => 'Fejér',
1831
		'GS' => 'Győr-Moson-Sopron',
1832
		'HB' => 'Hajdú-Bihar',
1833
		'HE' => 'Heves',
1834
		'JN' => 'Jász-Nagykun-Szolnok',
1835
		'KE' => 'Komárom-Esztergom',
1836
		'NO' => 'Nógrád',
1837
		'PE' => 'Pest',
1838
		'SO' => 'Somogy',
1839
		'SZ' => 'Szabolcs-Szatmár-Bereg',
1840
		'TO' => 'Tolna',
1841
		'VA' => 'Vas',
1842
		'VE' => 'Veszprém',
1843
		'ZA' => 'Zala'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1844
	);
1845
1846
	return apply_filters( 'give_hungary_states', $states );
1847
}
1848
1849
/**
1850
 * Get Chinese States
1851
 *
1852
 * @since 1.0
1853
 * @return array $states A list of states
1854
 */
1855
function give_get_chinese_states_list() {
1856
	$states = array(
1857
		''     => '',
1858
		'CN1'  => 'Yunnan / &#20113;&#21335;',
1859
		'CN2'  => 'Beijing / &#21271;&#20140;',
1860
		'CN3'  => 'Tianjin / &#22825;&#27941;',
1861
		'CN4'  => 'Hebei / &#27827;&#21271;',
1862
		'CN5'  => 'Shanxi / &#23665;&#35199;',
1863
		'CN6'  => 'Inner Mongolia / &#20839;&#33945;&#21476;',
1864
		'CN7'  => 'Liaoning / &#36797;&#23425;',
1865
		'CN8'  => 'Jilin / &#21513;&#26519;',
1866
		'CN9'  => 'Heilongjiang / &#40657;&#40857;&#27743;',
1867
		'CN10' => 'Shanghai / &#19978;&#28023;',
1868
		'CN11' => 'Jiangsu / &#27743;&#33487;',
1869
		'CN12' => 'Zhejiang / &#27993;&#27743;',
1870
		'CN13' => 'Anhui / &#23433;&#24509;',
1871
		'CN14' => 'Fujian / &#31119;&#24314;',
1872
		'CN15' => 'Jiangxi / &#27743;&#35199;',
1873
		'CN16' => 'Shandong / &#23665;&#19996;',
1874
		'CN17' => 'Henan / &#27827;&#21335;',
1875
		'CN18' => 'Hubei / &#28246;&#21271;',
1876
		'CN19' => 'Hunan / &#28246;&#21335;',
1877
		'CN20' => 'Guangdong / &#24191;&#19996;',
1878
		'CN21' => 'Guangxi Zhuang / &#24191;&#35199;&#22766;&#26063;',
1879
		'CN22' => 'Hainan / &#28023;&#21335;',
1880
		'CN23' => 'Chongqing / &#37325;&#24198;',
1881
		'CN24' => 'Sichuan / &#22235;&#24029;',
1882
		'CN25' => 'Guizhou / &#36149;&#24030;',
1883
		'CN26' => 'Shaanxi / &#38485;&#35199;',
1884
		'CN27' => 'Gansu / &#29976;&#32899;',
1885
		'CN28' => 'Qinghai / &#38738;&#28023;',
1886
		'CN29' => 'Ningxia Hui / &#23425;&#22799;',
1887
		'CN30' => 'Macau / &#28595;&#38376;',
1888
		'CN31' => 'Tibet / &#35199;&#34255;',
1889
		'CN32' => 'Xinjiang / &#26032;&#30086;'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1890
	);
1891
1892
	return apply_filters( 'give_chinese_states', $states );
1893
}
1894
1895
/**
1896
 * Get New Zealand States
1897
 *
1898
 * @since 1.0
1899
 * @return array $states A list of states
1900
 */
1901
function give_get_new_zealand_states_list() {
1902
	$states = array(
1903
		''   => '',
1904
		'AK' => 'Auckland',
1905
		'BP' => 'Bay of Plenty',
1906
		'CT' => 'Canterbury',
1907
		'HB' => 'Hawke&rsquo;s Bay',
1908
		'MW' => 'Manawatu-Wanganui',
1909
		'MB' => 'Marlborough',
1910
		'NS' => 'Nelson',
1911
		'NL' => 'Northland',
1912
		'OT' => 'Otago',
1913
		'SL' => 'Southland',
1914
		'TK' => 'Taranaki',
1915
		'TM' => 'Tasman',
1916
		'WA' => 'Waikato',
1917
		'WE' => 'Wellington',
1918
		'WC' => 'West Coast'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1919
	);
1920
1921
	return apply_filters( 'give_new_zealand_states', $states );
1922
}
1923
1924
/**
1925
 * Get Indonesian States
1926
 *
1927
 * @since 1.0
1928
 * @return array $states A list of states
1929
 */
1930
function give_get_indonesian_states_list() {
1931
	$states = array(
1932
		''   => '',
1933
		'AC' => 'Daerah Istimewa Aceh',
1934
		'SU' => 'Sumatera Utara',
1935
		'SB' => 'Sumatera Barat',
1936
		'RI' => 'Riau',
1937
		'KR' => 'Kepulauan Riau',
1938
		'JA' => 'Jambi',
1939
		'SS' => 'Sumatera Selatan',
1940
		'BB' => 'Bangka Belitung',
1941
		'BE' => 'Bengkulu',
1942
		'LA' => 'Lampung',
1943
		'JK' => 'DKI Jakarta',
1944
		'JB' => 'Jawa Barat',
1945
		'BT' => 'Banten',
1946
		'JT' => 'Jawa Tengah',
1947
		'JI' => 'Jawa Timur',
1948
		'YO' => 'Daerah Istimewa Yogyakarta',
1949
		'BA' => 'Bali',
1950
		'NB' => 'Nusa Tenggara Barat',
1951
		'NT' => 'Nusa Tenggara Timur',
1952
		'KB' => 'Kalimantan Barat',
1953
		'KT' => 'Kalimantan Tengah',
1954
		'KI' => 'Kalimantan Timur',
1955
		'KS' => 'Kalimantan Selatan',
1956
		'KU' => 'Kalimantan Utara',
1957
		'SA' => 'Sulawesi Utara',
1958
		'ST' => 'Sulawesi Tengah',
1959
		'SG' => 'Sulawesi Tenggara',
1960
		'SR' => 'Sulawesi Barat',
1961
		'SN' => 'Sulawesi Selatan',
1962
		'GO' => 'Gorontalo',
1963
		'MA' => 'Maluku',
1964
		'MU' => 'Maluku Utara',
1965
		'PA' => 'Papua',
1966
		'PB' => 'Papua Barat'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
1967
	);
1968
1969
	return apply_filters( 'give_indonesia_states', $states );
1970
}
1971
1972
/**
1973
 * Get Indian States
1974
 *
1975
 * @since 1.0
1976
 * @return array $states A list of states
1977
 */
1978
function give_get_indian_states_list() {
1979
	$states = array(
1980
		''   => '',
1981
		'AP' => 'Andhra Pradesh',
1982
		'AR' => 'Arunachal Pradesh',
1983
		'AS' => 'Assam',
1984
		'BR' => 'Bihar',
1985
		'CT' => 'Chhattisgarh',
1986
		'GA' => 'Goa',
1987
		'GJ' => 'Gujarat',
1988
		'HR' => 'Haryana',
1989
		'HP' => 'Himachal Pradesh',
1990
		'JK' => 'Jammu and Kashmir',
1991
		'JH' => 'Jharkhand',
1992
		'KA' => 'Karnataka',
1993
		'KL' => 'Kerala',
1994
		'MP' => 'Madhya Pradesh',
1995
		'MH' => 'Maharashtra',
1996
		'MN' => 'Manipur',
1997
		'ML' => 'Meghalaya',
1998
		'MZ' => 'Mizoram',
1999
		'NL' => 'Nagaland',
2000
		'OR' => 'Orissa',
2001
		'PB' => 'Punjab',
2002
		'RJ' => 'Rajasthan',
2003
		'SK' => 'Sikkim',
2004
		'TN' => 'Tamil Nadu',
2005
		'TG' => 'Telangana',
2006
		'TR' => 'Tripura',
2007
		'UT' => 'Uttarakhand',
2008
		'UP' => 'Uttar Pradesh',
2009
		'WB' => 'West Bengal',
2010
		'AN' => 'Andaman and Nicobar Islands',
2011
		'CH' => 'Chandigarh',
2012
		'DN' => 'Dadar and Nagar Haveli',
2013
		'DD' => 'Daman and Diu',
2014
		'DL' => 'Delhi',
2015
		'LD' => 'Lakshadweep',
2016
		'PY' => 'Pondicherry (Puducherry)'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
2017
	);
2018
2019
	return apply_filters( 'give_indian_states', $states );
2020
}
2021
2022
/**
2023
 * Get Malaysian States
2024
 *
2025
 * @since 1.6
2026
 * @return array $states A list of states
2027
 */
2028
function give_get_malaysian_states_list() {
2029
	$states = array(
2030
		''    => '',
2031
		'JHR' => 'Johor',
2032
		'KDH' => 'Kedah',
2033
		'KTN' => 'Kelantan',
2034
		'MLK' => 'Melaka',
2035
		'NSN' => 'Negeri Sembilan',
2036
		'PHG' => 'Pahang',
2037
		'PRK' => 'Perak',
2038
		'PLS' => 'Perlis',
2039
		'PNG' => 'Pulau Pinang',
2040
		'SBH' => 'Sabah',
2041
		'SWK' => 'Sarawak',
2042
		'SGR' => 'Selangor',
2043
		'TRG' => 'Terengganu',
2044
		'KUL' => 'W.P. Kuala Lumpur',
2045
		'LBN' => 'W.P. Labuan',
2046
		'PJY' => 'W.P. Putrajaya'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
2047
	);
2048
2049
	return apply_filters( 'give_malaysian_states', $states );
2050
}
2051
2052
/**
2053
 * Get South African States
2054
 *
2055
 * @since 1.6
2056
 * @return array $states A list of states
2057
 */
2058
function give_get_south_african_states_list() {
2059
	$states = array(
2060
		''    => '',
2061
		'EC'  => 'Eastern Cape',
2062
		'FS'  => 'Free State',
2063
		'GP'  => 'Gauteng',
2064
		'KZN' => 'KwaZulu-Natal',
2065
		'LP'  => 'Limpopo',
2066
		'MP'  => 'Mpumalanga',
2067
		'NC'  => 'Northern Cape',
2068
		'NW'  => 'North West',
2069
		'WC'  => 'Western Cape'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
2070
	);
2071
2072
	return apply_filters( 'give_south_african_states', $states );
2073
}
2074
2075
/**
2076
 * Get Thailand States
2077
 *
2078
 * @since 1.6
2079
 * @return array $states A list of states
2080
 */
2081
function give_get_thailand_states_list() {
2082
	$states = array(
2083
		''      => '',
2084
		'TH-37' => 'Amnat Charoen (&#3629;&#3635;&#3609;&#3634;&#3592;&#3648;&#3592;&#3619;&#3636;&#3597;)',
2085
		'TH-15' => 'Ang Thong (&#3629;&#3656;&#3634;&#3591;&#3607;&#3629;&#3591;)',
2086
		'TH-14' => 'Ayutthaya (&#3614;&#3619;&#3632;&#3609;&#3588;&#3619;&#3624;&#3619;&#3637;&#3629;&#3618;&#3640;&#3608;&#3618;&#3634;)',
2087
		'TH-10' => 'Bangkok (&#3585;&#3619;&#3640;&#3591;&#3648;&#3607;&#3614;&#3617;&#3627;&#3634;&#3609;&#3588;&#3619;)',
2088
		'TH-38' => 'Bueng Kan (&#3610;&#3638;&#3591;&#3585;&#3634;&#3628;)',
2089
		'TH-31' => 'Buri Ram (&#3610;&#3640;&#3619;&#3637;&#3619;&#3633;&#3617;&#3618;&#3660;)',
2090
		'TH-24' => 'Chachoengsao (&#3593;&#3632;&#3648;&#3594;&#3636;&#3591;&#3648;&#3607;&#3619;&#3634;)',
2091
		'TH-18' => 'Chai Nat (&#3594;&#3633;&#3618;&#3609;&#3634;&#3607;)',
2092
		'TH-36' => 'Chaiyaphum (&#3594;&#3633;&#3618;&#3616;&#3641;&#3617;&#3636;)',
2093
		'TH-22' => 'Chanthaburi (&#3592;&#3633;&#3609;&#3607;&#3610;&#3640;&#3619;&#3637;)',
2094
		'TH-50' => 'Chiang Mai (&#3648;&#3594;&#3637;&#3618;&#3591;&#3651;&#3627;&#3617;&#3656;)',
2095
		'TH-57' => 'Chiang Rai (&#3648;&#3594;&#3637;&#3618;&#3591;&#3619;&#3634;&#3618;)',
2096
		'TH-20' => 'Chonburi (&#3594;&#3621;&#3610;&#3640;&#3619;&#3637;)',
2097
		'TH-86' => 'Chumphon (&#3594;&#3640;&#3617;&#3614;&#3619;)',
2098
		'TH-46' => 'Kalasin (&#3585;&#3634;&#3628;&#3626;&#3636;&#3609;&#3608;&#3640;&#3660;)',
2099
		'TH-62' => 'Kamphaeng Phet (&#3585;&#3635;&#3649;&#3614;&#3591;&#3648;&#3614;&#3594;&#3619;)',
2100
		'TH-71' => 'Kanchanaburi (&#3585;&#3634;&#3597;&#3592;&#3609;&#3610;&#3640;&#3619;&#3637;)',
2101
		'TH-40' => 'Khon Kaen (&#3586;&#3629;&#3609;&#3649;&#3585;&#3656;&#3609;)',
2102
		'TH-81' => 'Krabi (&#3585;&#3619;&#3632;&#3610;&#3637;&#3656;)',
2103
		'TH-52' => 'Lampang (&#3621;&#3635;&#3611;&#3634;&#3591;)',
2104
		'TH-51' => 'Lamphun (&#3621;&#3635;&#3614;&#3641;&#3609;)',
2105
		'TH-42' => 'Loei (&#3648;&#3621;&#3618;)',
2106
		'TH-16' => 'Lopburi (&#3621;&#3614;&#3610;&#3640;&#3619;&#3637;)',
2107
		'TH-58' => 'Mae Hong Son (&#3649;&#3617;&#3656;&#3630;&#3656;&#3629;&#3591;&#3626;&#3629;&#3609;)',
2108
		'TH-44' => 'Maha Sarakham (&#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617;)',
2109
		'TH-49' => 'Mukdahan (&#3617;&#3640;&#3585;&#3604;&#3634;&#3627;&#3634;&#3619;)',
2110
		'TH-26' => 'Nakhon Nayok (&#3609;&#3588;&#3619;&#3609;&#3634;&#3618;&#3585;)',
2111
		'TH-73' => 'Nakhon Pathom (&#3609;&#3588;&#3619;&#3611;&#3600;&#3617;)',
2112
		'TH-48' => 'Nakhon Phanom (&#3609;&#3588;&#3619;&#3614;&#3609;&#3617;)',
2113
		'TH-30' => 'Nakhon Ratchasima (&#3609;&#3588;&#3619;&#3619;&#3634;&#3594;&#3626;&#3637;&#3617;&#3634;)',
2114
		'TH-60' => 'Nakhon Sawan (&#3609;&#3588;&#3619;&#3626;&#3623;&#3619;&#3619;&#3588;&#3660;)',
2115
		'TH-80' => 'Nakhon Si Thammarat (&#3609;&#3588;&#3619;&#3624;&#3619;&#3637;&#3608;&#3619;&#3619;&#3617;&#3619;&#3634;&#3594;)',
2116
		'TH-55' => 'Nan (&#3609;&#3656;&#3634;&#3609;)',
2117
		'TH-96' => 'Narathiwat (&#3609;&#3619;&#3634;&#3608;&#3636;&#3623;&#3634;&#3626;)',
2118
		'TH-39' => 'Nong Bua Lam Phu (&#3627;&#3609;&#3629;&#3591;&#3610;&#3633;&#3623;&#3621;&#3635;&#3616;&#3641;)',
2119
		'TH-43' => 'Nong Khai (&#3627;&#3609;&#3629;&#3591;&#3588;&#3634;&#3618;)',
2120
		'TH-12' => 'Nonthaburi (&#3609;&#3609;&#3607;&#3610;&#3640;&#3619;&#3637;)',
2121
		'TH-13' => 'Pathum Thani (&#3611;&#3607;&#3640;&#3617;&#3608;&#3634;&#3609;&#3637;)',
2122
		'TH-94' => 'Pattani (&#3611;&#3633;&#3605;&#3605;&#3634;&#3609;&#3637;)',
2123
		'TH-82' => 'Phang Nga (&#3614;&#3633;&#3591;&#3591;&#3634;)',
2124
		'TH-93' => 'Phatthalung (&#3614;&#3633;&#3607;&#3621;&#3640;&#3591;)',
2125
		'TH-56' => 'Phayao (&#3614;&#3632;&#3648;&#3618;&#3634;)',
2126
		'TH-67' => 'Phetchabun (&#3648;&#3614;&#3594;&#3619;&#3610;&#3641;&#3619;&#3603;&#3660;)',
2127
		'TH-76' => 'Phetchaburi (&#3648;&#3614;&#3594;&#3619;&#3610;&#3640;&#3619;&#3637;)',
2128
		'TH-66' => 'Phichit (&#3614;&#3636;&#3592;&#3636;&#3605;&#3619;)',
2129
		'TH-65' => 'Phitsanulok (&#3614;&#3636;&#3625;&#3603;&#3640;&#3650;&#3621;&#3585;)',
2130
		'TH-54' => 'Phrae (&#3649;&#3614;&#3619;&#3656;)',
2131
		'TH-83' => 'Phuket (&#3616;&#3641;&#3648;&#3585;&#3655;&#3605;)',
2132
		'TH-25' => 'Prachin Buri (&#3611;&#3619;&#3634;&#3592;&#3637;&#3609;&#3610;&#3640;&#3619;&#3637;)',
2133
		'TH-77' => 'Prachuap Khiri Khan (&#3611;&#3619;&#3632;&#3592;&#3623;&#3610;&#3588;&#3637;&#3619;&#3637;&#3586;&#3633;&#3609;&#3608;&#3660;)',
2134
		'TH-85' => 'Ranong (&#3619;&#3632;&#3609;&#3629;&#3591;)',
2135
		'TH-70' => 'Ratchaburi (&#3619;&#3634;&#3594;&#3610;&#3640;&#3619;&#3637;)',
2136
		'TH-21' => 'Rayong (&#3619;&#3632;&#3618;&#3629;&#3591;)',
2137
		'TH-45' => 'Roi Et (&#3619;&#3657;&#3629;&#3618;&#3648;&#3629;&#3655;&#3604;)',
2138
		'TH-27' => 'Sa Kaeo (&#3626;&#3619;&#3632;&#3649;&#3585;&#3657;&#3623;)',
2139
		'TH-47' => 'Sakon Nakhon (&#3626;&#3585;&#3621;&#3609;&#3588;&#3619;)',
2140
		'TH-11' => 'Samut Prakan (&#3626;&#3617;&#3640;&#3607;&#3619;&#3611;&#3619;&#3634;&#3585;&#3634;&#3619;)',
2141
		'TH-74' => 'Samut Sakhon (&#3626;&#3617;&#3640;&#3607;&#3619;&#3626;&#3634;&#3588;&#3619;)',
2142
		'TH-75' => 'Samut Songkhram (&#3626;&#3617;&#3640;&#3607;&#3619;&#3626;&#3591;&#3588;&#3619;&#3634;&#3617;)',
2143
		'TH-19' => 'Saraburi (&#3626;&#3619;&#3632;&#3610;&#3640;&#3619;&#3637;)',
2144
		'TH-91' => 'Satun (&#3626;&#3605;&#3641;&#3621;)',
2145
		'TH-17' => 'Sing Buri (&#3626;&#3636;&#3591;&#3627;&#3660;&#3610;&#3640;&#3619;&#3637;)',
2146
		'TH-33' => 'Sisaket (&#3624;&#3619;&#3637;&#3626;&#3632;&#3648;&#3585;&#3625;)',
2147
		'TH-90' => 'Songkhla (&#3626;&#3591;&#3586;&#3621;&#3634;)',
2148
		'TH-64' => 'Sukhothai (&#3626;&#3640;&#3650;&#3586;&#3607;&#3633;&#3618;)',
2149
		'TH-72' => 'Suphan Buri (&#3626;&#3640;&#3614;&#3619;&#3619;&#3603;&#3610;&#3640;&#3619;&#3637;)',
2150
		'TH-84' => 'Surat Thani (&#3626;&#3640;&#3619;&#3634;&#3625;&#3598;&#3619;&#3660;&#3608;&#3634;&#3609;&#3637;)',
2151
		'TH-32' => 'Surin (&#3626;&#3640;&#3619;&#3636;&#3609;&#3607;&#3619;&#3660;)',
2152
		'TH-63' => 'Tak (&#3605;&#3634;&#3585;)',
2153
		'TH-92' => 'Trang (&#3605;&#3619;&#3633;&#3591;)',
2154
		'TH-23' => 'Trat (&#3605;&#3619;&#3634;&#3604;)',
2155
		'TH-34' => 'Ubon Ratchathani (&#3629;&#3640;&#3610;&#3621;&#3619;&#3634;&#3594;&#3608;&#3634;&#3609;&#3637;)',
2156
		'TH-41' => 'Udon Thani (&#3629;&#3640;&#3604;&#3619;&#3608;&#3634;&#3609;&#3637;)',
2157
		'TH-61' => 'Uthai Thani (&#3629;&#3640;&#3607;&#3633;&#3618;&#3608;&#3634;&#3609;&#3637;)',
2158
		'TH-53' => 'Uttaradit (&#3629;&#3640;&#3605;&#3619;&#3604;&#3636;&#3605;&#3606;&#3660;)',
2159
		'TH-95' => 'Yala (&#3618;&#3632;&#3621;&#3634;)',
2160
		'TH-35' => 'Yasothon (&#3618;&#3650;&#3626;&#3608;&#3619;)'
0 ignored issues
show
introduced by
Each line in an array declaration must end in a comma
Loading history...
2161
	);
2162
2163
	return apply_filters( 'give_thailand_states', $states );
2164
}
2165
2166
/**
2167
 * Get Spain States
2168
 *
2169
 * @since 1.0
2170
 * @return array $states A list of states
2171
 */
2172
function give_get_spain_states_list() {
2173
	$states = array(
2174
		''   => '',
2175
		'C'  => esc_html__( 'A Coru&ntilde;a', 'give' ),
2176
		'VI' => esc_html__( 'Álava', 'give' ),
2177
		'AB' => esc_html__( 'Albacete', 'give' ),
2178
		'A'  => esc_html__( 'Alicante', 'give' ),
2179
		'AL' => esc_html__( 'Almer&iacute;a', 'give' ),
2180
		'O'  => esc_html__( 'Asturias', 'give' ),
2181
		'AV' => esc_html__( '&Aacute;vila', 'give' ),
2182
		'BA' => esc_html__( 'Badajoz', 'give' ),
2183
		'PM' => esc_html__( 'Baleares', 'give' ),
2184
		'B'  => esc_html__( 'Barcelona', 'give' ),
2185
		'BU' => esc_html__( 'Burgos', 'give' ),
2186
		'CC' => esc_html__( 'C&aacute;ceres', 'give' ),
2187
		'CA' => esc_html__( 'C&aacute;diz', 'give' ),
2188
		'S'  => esc_html__( 'Cantabria', 'give' ),
2189
		'CS' => esc_html__( 'Castell&oacute;n', 'give' ),
2190
		'CE' => esc_html__( 'Ceuta', 'give' ),
2191
		'CR' => esc_html__( 'Ciudad Real', 'give' ),
2192
		'CO' => esc_html__( 'C&oacute;rdoba', 'give' ),
2193
		'CU' => esc_html__( 'Cuenca', 'give' ),
2194
		'GI' => esc_html__( 'Girona', 'give' ),
2195
		'GR' => esc_html__( 'Granada', 'give' ),
2196
		'GU' => esc_html__( 'Guadalajara', 'give' ),
2197
		'SS' => esc_html__( 'Gipuzkoa', 'give' ),
2198
		'H'  => esc_html__( 'Huelva', 'give' ),
2199
		'HU' => esc_html__( 'Huesca', 'give' ),
2200
		'J'  => esc_html__( 'Ja&eacute;n', 'give' ),
2201
		'LO' => esc_html__( 'La Rioja', 'give' ),
2202
		'GC' => esc_html__( 'Las Palmas', 'give' ),
2203
		'LE' => esc_html__( 'Le&oacute;n', 'give' ),
2204
		'L'  => esc_html__( 'Lleida', 'give' ),
2205
		'LU' => esc_html__( 'Lugo', 'give' ),
2206
		'M'  => esc_html__( 'Madrid', 'give' ),
2207
		'MA' => esc_html__( 'M&aacute;laga', 'give' ),
2208
		'ML' => esc_html__( 'Melilla', 'give' ),
2209
		'MU' => esc_html__( 'Murcia', 'give' ),
2210
		'NA' => esc_html__( 'Navarra', 'give' ),
2211
		'OR' => esc_html__( 'Ourense', 'give' ),
2212
		'P'  => esc_html__( 'Palencia', 'give' ),
2213
		'PO' => esc_html__( 'Pontevedra', 'give' ),
2214
		'SA' => esc_html__( 'Salamanca', 'give' ),
2215
		'TF' => esc_html__( 'Santa Cruz de Tenerife', 'give' ),
2216
		'SG' => esc_html__( 'Segovia', 'give' ),
2217
		'SE' => esc_html__( 'Sevilla', 'give' ),
2218
		'SO' => esc_html__( 'Soria', 'give' ),
2219
		'T'  => esc_html__( 'Tarragona', 'give' ),
2220
		'TE' => esc_html__( 'Teruel', 'give' ),
2221
		'TO' => esc_html__( 'Toledo', 'give' ),
2222
		'V'  => esc_html__( 'Valencia', 'give' ),
2223
		'VA' => esc_html__( 'Valladolid', 'give' ),
2224
		'BI' => esc_html__( 'Bizkaia', 'give' ),
2225
		'ZA' => esc_html__( 'Zamora', 'give' ),
2226
		'Z'  => esc_html__( 'Zaragoza', 'give' )
2227
	);
2228
2229
	return apply_filters( 'give_spain_states', $states );
2230
}
2231