PodsField_Pick::data_countries PHP Method

data_countries() public method

Data callback for Countries
Since: 2.3
public data_countries ( string $name = null, string | array $value = null, array $options = null, array $pod = null, integer $id = null ) : array
$name string The name of the field
$value string | array The value of the field
$options array Field options
$pod array Pod data
$id integer Item ID
return array
    public function data_countries($name = null, $value = null, $options = null, $pod = null, $id = null)
    {
        $data = array('AF' => __('Afghanistan'), 'AL' => __('Albania'), 'DZ' => __('Algeria'), 'AS' => __('American Samoa'), 'AD' => __('Andorra'), 'AO' => __('Angola'), 'AI' => __('Anguilla'), 'AQ' => __('Antarctica'), 'AG' => __('Antigua and Barbuda'), 'AR' => __('Argentina'), 'AM' => __('Armenia'), 'AW' => __('Aruba'), 'AU' => __('Australia'), 'AT' => __('Austria'), 'AZ' => __('Azerbaijan'), 'BS' => __('Bahamas'), 'BH' => __('Bahrain'), 'BD' => __('Bangladesh'), 'BB' => __('Barbados'), 'BY' => __('Belarus'), 'BE' => __('Belgium'), 'BZ' => __('Belize'), 'BJ' => __('Benin'), 'BM' => __('Bermuda'), 'BT' => __('Bhutan'), 'BO' => __('Bolivia'), 'BA' => __('Bosnia and Herzegovina'), 'BW' => __('Botswana'), 'BV' => __('Bouvet Island'), 'BR' => __('Brazil'), 'BQ' => __('British Antarctic Territory'), 'IO' => __('British Indian Ocean Territory'), 'VG' => __('British Virgin Islands'), 'BN' => __('Brunei'), 'BG' => __('Bulgaria'), 'BF' => __('Burkina Faso'), 'BI' => __('Burundi'), 'KH' => __('Cambodia'), 'CM' => __('Cameroon'), 'CA' => __('Canada'), 'CT' => __('Canton and Enderbury Islands'), 'CV' => __('Cape Verde'), 'KY' => __('Cayman Islands'), 'CF' => __('Central African Republic'), 'TD' => __('Chad'), 'CL' => __('Chile'), 'CN' => __('China'), 'CX' => __('Christmas Island'), 'CC' => __('Cocos [Keeling] Islands'), 'CO' => __('Colombia'), 'KM' => __('Comoros'), 'CG' => __('Congo - Brazzaville'), 'CD' => __('Congo - Kinshasa'), 'CK' => __('Cook Islands'), 'CR' => __('Costa Rica'), 'HR' => __('Croatia'), 'CU' => __('Cuba'), 'CY' => __('Cyprus'), 'CZ' => __('Czech Republic'), 'CI' => __('Côte d’Ivoire'), 'DK' => __('Denmark'), 'DJ' => __('Djibouti'), 'DM' => __('Dominica'), 'DO' => __('Dominican Republic'), 'NQ' => __('Dronning Maud Land'), 'DD' => __('East Germany'), 'EC' => __('Ecuador'), 'EG' => __('Egypt'), 'SV' => __('El Salvador'), 'GQ' => __('Equatorial Guinea'), 'ER' => __('Eritrea'), 'EE' => __('Estonia'), 'ET' => __('Ethiopia'), 'FK' => __('Falkland Islands'), 'FO' => __('Faroe Islands'), 'FJ' => __('Fiji'), 'FI' => __('Finland'), 'FR' => __('France'), 'GF' => __('French Guiana'), 'PF' => __('French Polynesia'), 'TF' => __('French Southern Territories'), 'FQ' => __('French Southern and Antarctic Territories'), 'GA' => __('Gabon'), 'GM' => __('Gambia'), 'GE' => __('Georgia'), 'DE' => __('Germany'), 'GH' => __('Ghana'), 'GI' => __('Gibraltar'), 'GR' => __('Greece'), 'GL' => __('Greenland'), 'GD' => __('Grenada'), 'GP' => __('Guadeloupe'), 'GU' => __('Guam'), 'GT' => __('Guatemala'), 'GG' => __('Guernsey'), 'GN' => __('Guinea'), 'GW' => __('Guinea-Bissau'), 'GY' => __('Guyana'), 'HT' => __('Haiti'), 'HM' => __('Heard Island and McDonald Islands'), 'HN' => __('Honduras'), 'HK' => __('Hong Kong SAR China'), 'HU' => __('Hungary'), 'IS' => __('Iceland'), 'IN' => __('India'), 'ID' => __('Indonesia'), 'IR' => __('Iran'), 'IQ' => __('Iraq'), 'IE' => __('Ireland'), 'IM' => __('Isle of Man'), 'IL' => __('Israel'), 'IT' => __('Italy'), 'JM' => __('Jamaica'), 'JP' => __('Japan'), 'JE' => __('Jersey'), 'JT' => __('Johnston Island'), 'JO' => __('Jordan'), 'KZ' => __('Kazakhstan'), 'KE' => __('Kenya'), 'KI' => __('Kiribati'), 'KW' => __('Kuwait'), 'KG' => __('Kyrgyzstan'), 'LA' => __('Laos'), 'LV' => __('Latvia'), 'LB' => __('Lebanon'), 'LS' => __('Lesotho'), 'LR' => __('Liberia'), 'LY' => __('Libya'), 'LI' => __('Liechtenstein'), 'LT' => __('Lithuania'), 'LU' => __('Luxembourg'), 'MO' => __('Macau SAR China'), 'MK' => __('Macedonia'), 'MG' => __('Madagascar'), 'MW' => __('Malawi'), 'MY' => __('Malaysia'), 'MV' => __('Maldives'), 'ML' => __('Mali'), 'MT' => __('Malta'), 'MH' => __('Marshall Islands'), 'MQ' => __('Martinique'), 'MR' => __('Mauritania'), 'MU' => __('Mauritius'), 'YT' => __('Mayotte'), 'FX' => __('Metropolitan France'), 'MX' => __('Mexico'), 'FM' => __('Micronesia'), 'MI' => __('Midway Islands'), 'MD' => __('Moldova'), 'MC' => __('Monaco'), 'MN' => __('Mongolia'), 'ME' => __('Montenegro'), 'MS' => __('Montserrat'), 'MA' => __('Morocco'), 'MZ' => __('Mozambique'), 'MM' => __('Myanmar [Burma]'), 'NA' => __('Namibia'), 'NR' => __('Nauru'), 'NP' => __('Nepal'), 'NL' => __('Netherlands'), 'AN' => __('Netherlands Antilles'), 'NT' => __('Neutral Zone'), 'NC' => __('New Caledonia'), 'NZ' => __('New Zealand'), 'NI' => __('Nicaragua'), 'NE' => __('Niger'), 'NG' => __('Nigeria'), 'NU' => __('Niue'), 'NF' => __('Norfolk Island'), 'KP' => __('North Korea'), 'VD' => __('North Vietnam'), 'MP' => __('Northern Mariana Islands'), 'NO' => __('Norway'), 'OM' => __('Oman'), 'PC' => __('Pacific Islands Trust Territory'), 'PK' => __('Pakistan'), 'PW' => __('Palau'), 'PS' => __('Palestinian Territories'), 'PA' => __('Panama'), 'PZ' => __('Panama Canal Zone'), 'PG' => __('Papua New Guinea'), 'PY' => __('Paraguay'), 'YD' => __("People's Democratic Republic of Yemen"), 'PE' => __('Peru'), 'PH' => __('Philippines'), 'PN' => __('Pitcairn Islands'), 'PL' => __('Poland'), 'PT' => __('Portugal'), 'PR' => __('Puerto Rico'), 'QA' => __('Qatar'), 'RO' => __('Romania'), 'RU' => __('Russia'), 'RW' => __('Rwanda'), 'RE' => __('Réunion'), 'BL' => __('Saint Barthélemy'), 'SH' => __('Saint Helena'), 'KN' => __('Saint Kitts and Nevis'), 'LC' => __('Saint Lucia'), 'MF' => __('Saint Martin'), 'PM' => __('Saint Pierre and Miquelon'), 'VC' => __('Saint Vincent and the Grenadines'), 'WS' => __('Samoa'), 'SM' => __('San Marino'), 'SA' => __('Saudi Arabia'), 'SN' => __('Senegal'), 'RS' => __('Serbia'), 'CS' => __('Serbia and Montenegro'), 'SC' => __('Seychelles'), 'SL' => __('Sierra Leone'), 'SG' => __('Singapore'), 'SK' => __('Slovakia'), 'SI' => __('Slovenia'), 'SB' => __('Solomon Islands'), 'SO' => __('Somalia'), 'ZA' => __('South Africa'), 'GS' => __('South Georgia and the South Sandwich Islands'), 'KR' => __('South Korea'), 'ES' => __('Spain'), 'LK' => __('Sri Lanka'), 'SD' => __('Sudan'), 'SR' => __('Suriname'), 'SJ' => __('Svalbard and Jan Mayen'), 'SZ' => __('Swaziland'), 'SE' => __('Sweden'), 'CH' => __('Switzerland'), 'SY' => __('Syria'), 'ST' => __('São Tomé and Príncipe'), 'TW' => __('Taiwan'), 'TJ' => __('Tajikistan'), 'TZ' => __('Tanzania'), 'TH' => __('Thailand'), 'TL' => __('Timor-Leste'), 'TG' => __('Togo'), 'TK' => __('Tokelau'), 'TO' => __('Tonga'), 'TT' => __('Trinidad and Tobago'), 'TN' => __('Tunisia'), 'TR' => __('Turkey'), 'TM' => __('Turkmenistan'), 'TC' => __('Turks and Caicos Islands'), 'TV' => __('Tuvalu'), 'UM' => __('U.S. Minor Outlying Islands'), 'PU' => __('U.S. Miscellaneous Pacific Islands'), 'VI' => __('U.S. Virgin Islands'), 'UG' => __('Uganda'), 'UA' => __('Ukraine'), 'SU' => __('Union of Soviet Socialist Republics'), 'AE' => __('United Arab Emirates'), 'GB' => __('United Kingdom'), 'US' => __('United States'), 'ZZ' => __('Unknown or Invalid Region'), 'UY' => __('Uruguay'), 'UZ' => __('Uzbekistan'), 'VU' => __('Vanuatu'), 'VA' => __('Vatican City'), 'VE' => __('Venezuela'), 'VN' => __('Vietnam'), 'WK' => __('Wake Island'), 'WF' => __('Wallis and Futuna'), 'EH' => __('Western Sahara'), 'YE' => __('Yemen'), 'ZM' => __('Zambia'), 'ZW' => __('Zimbabwe'), 'AX' => __('Åland Islands'));
        return apply_filters('pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id);
    }