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