| 1 |
<?php |
| 2 |
/** |
| 3 |
* List currencies. |
| 4 |
* |
| 5 |
* @retrun array |
| 6 |
*/ |
| 7 |
|
| 8 |
$currencies = [ |
| 9 |
'AED' => __( 'United Arab Emirates dirham', 'learnpress' ), |
| 10 |
'AFN' => __( 'Afghan afghani', 'learnpress' ), |
| 11 |
'ALL' => __( 'Albanian lek', 'learnpress' ), |
| 12 |
'AMD' => __( 'Armenian dram', 'learnpress' ), |
| 13 |
'ANG' => __( 'Netherlands Antillean guilder', 'learnpress' ), |
| 14 |
'AOA' => __( 'Angolan kwanza', 'learnpress' ), |
| 15 |
'ARS' => __( 'Argentine peso', 'learnpress' ), |
| 16 |
'AUD' => __( 'Australian dollar', 'learnpress' ), |
| 17 |
'AWG' => __( 'Aruban florin', 'learnpress' ), |
| 18 |
'AZN' => __( 'Azerbaijani manat', 'learnpress' ), |
| 19 |
'BAM' => __( 'Bosnia and Herzegovina convertible mark', 'learnpress' ), |
| 20 |
'BBD' => __( 'Barbadian dollar', 'learnpress' ), |
| 21 |
'BDT' => __( 'Bangladeshi taka', 'learnpress' ), |
| 22 |
'BGN' => __( 'Bulgarian lev', 'learnpress' ), |
| 23 |
'BHD' => __( 'Bahraini dinar', 'learnpress' ), |
| 24 |
'BIF' => __( 'Burundian franc', 'learnpress' ), |
| 25 |
'BMD' => __( 'Bermudian dollar', 'learnpress' ), |
| 26 |
'BND' => __( 'Brunei dollar', 'learnpress' ), |
| 27 |
'BOB' => __( 'Bolivian boliviano', 'learnpress' ), |
| 28 |
'BRL' => __( 'Brazilian real', 'learnpress' ), |
| 29 |
'BSD' => __( 'Bahamian dollar', 'learnpress' ), |
| 30 |
'BTC' => __( 'Bitcoin', 'learnpress' ), |
| 31 |
'BTN' => __( 'Bhutanese ngultrum', 'learnpress' ), |
| 32 |
'BWP' => __( 'Botswana pula', 'learnpress' ), |
| 33 |
'BYR' => __( 'Belarusian ruble (old)', 'learnpress' ), |
| 34 |
'BYN' => __( 'Belarusian ruble', 'learnpress' ), |
| 35 |
'BZD' => __( 'Belize dollar', 'learnpress' ), |
| 36 |
'CAD' => __( 'Canadian dollar', 'learnpress' ), |
| 37 |
'CDF' => __( 'Congolese franc', 'learnpress' ), |
| 38 |
'CHF' => __( 'Swiss franc', 'learnpress' ), |
| 39 |
'CLP' => __( 'Chilean peso', 'learnpress' ), |
| 40 |
'CNY' => __( 'Chinese yuan', 'learnpress' ), |
| 41 |
'COP' => __( 'Colombian peso', 'learnpress' ), |
| 42 |
'CRC' => __( 'Costa Rican colón', 'learnpress' ), |
| 43 |
'CUC' => __( 'Cuban convertible peso', 'learnpress' ), |
| 44 |
'CUP' => __( 'Cuban peso', 'learnpress' ), |
| 45 |
'CVE' => __( 'Cape Verdean escudo', 'learnpress' ), |
| 46 |
'CZK' => __( 'Czech koruna', 'learnpress' ), |
| 47 |
'DJF' => __( 'Djiboutian franc', 'learnpress' ), |
| 48 |
'DKK' => __( 'Danish krone', 'learnpress' ), |
| 49 |
'DOP' => __( 'Dominican peso', 'learnpress' ), |
| 50 |
'DZD' => __( 'Algerian dinar', 'learnpress' ), |
| 51 |
'EGP' => __( 'Egyptian pound', 'learnpress' ), |
| 52 |
'ERN' => __( 'Eritrean nakfa', 'learnpress' ), |
| 53 |
'ETB' => __( 'Ethiopian birr', 'learnpress' ), |
| 54 |
'EUR' => __( 'Euro', 'learnpress' ), |
| 55 |
'FJD' => __( 'Fijian dollar', 'learnpress' ), |
| 56 |
'FKP' => __( 'Falkland Islands pound', 'learnpress' ), |
| 57 |
'GBP' => __( 'Pound sterling', 'learnpress' ), |
| 58 |
'GEL' => __( 'Georgian lari', 'learnpress' ), |
| 59 |
'GGP' => __( 'Guernsey pound', 'learnpress' ), |
| 60 |
'GHS' => __( 'Ghana cedi', 'learnpress' ), |
| 61 |
'GIP' => __( 'Gibraltar pound', 'learnpress' ), |
| 62 |
'GMD' => __( 'Gambian dalasi', 'learnpress' ), |
| 63 |
'GNF' => __( 'Guinean franc', 'learnpress' ), |
| 64 |
'GTQ' => __( 'Guatemalan quetzal', 'learnpress' ), |
| 65 |
'GYD' => __( 'Guyanese dollar', 'learnpress' ), |
| 66 |
'HKD' => __( 'Hong Kong dollar', 'learnpress' ), |
| 67 |
'HNL' => __( 'Honduran lempira', 'learnpress' ), |
| 68 |
'HRK' => __( 'Croatian kuna', 'learnpress' ), |
| 69 |
'HTG' => __( 'Haitian gourde', 'learnpress' ), |
| 70 |
'HUF' => __( 'Hungarian forint', 'learnpress' ), |
| 71 |
'IDR' => __( 'Indonesian rupiah', 'learnpress' ), |
| 72 |
'ILS' => __( 'Israeli new shekel', 'learnpress' ), |
| 73 |
'IMP' => __( 'Manx pound', 'learnpress' ), |
| 74 |
'INR' => __( 'Indian rupee', 'learnpress' ), |
| 75 |
'IQD' => __( 'Iraqi dinar', 'learnpress' ), |
| 76 |
'IRR' => __( 'Iranian rial', 'learnpress' ), |
| 77 |
'IRT' => __( 'Iranian toman', 'learnpress' ), |
| 78 |
'ISK' => __( 'Icelandic króna', 'learnpress' ), |
| 79 |
'JEP' => __( 'Jersey pound', 'learnpress' ), |
| 80 |
'JMD' => __( 'Jamaican dollar', 'learnpress' ), |
| 81 |
'JOD' => __( 'Jordanian dinar', 'learnpress' ), |
| 82 |
'JPY' => __( 'Japanese yen', 'learnpress' ), |
| 83 |
'KES' => __( 'Kenyan shilling', 'learnpress' ), |
| 84 |
'KGS' => __( 'Kyrgyzstani som', 'learnpress' ), |
| 85 |
'KHR' => __( 'Cambodian riel', 'learnpress' ), |
| 86 |
'KMF' => __( 'Comorian franc', 'learnpress' ), |
| 87 |
'KPW' => __( 'North Korean won', 'learnpress' ), |
| 88 |
'KRW' => __( 'South Korean won', 'learnpress' ), |
| 89 |
'KWD' => __( 'Kuwaiti dinar', 'learnpress' ), |
| 90 |
'KYD' => __( 'Cayman Islands dollar', 'learnpress' ), |
| 91 |
'KZT' => __( 'Kazakhstani tenge', 'learnpress' ), |
| 92 |
'LAK' => __( 'Lao kip', 'learnpress' ), |
| 93 |
'LBP' => __( 'Lebanese pound', 'learnpress' ), |
| 94 |
'LKR' => __( 'Sri Lankan rupee', 'learnpress' ), |
| 95 |
'LRD' => __( 'Liberian dollar', 'learnpress' ), |
| 96 |
'LSL' => __( 'Lesotho loti', 'learnpress' ), |
| 97 |
'LYD' => __( 'Libyan dinar', 'learnpress' ), |
| 98 |
'MAD' => __( 'Moroccan dirham', 'learnpress' ), |
| 99 |
'MDL' => __( 'Moldovan leu', 'learnpress' ), |
| 100 |
'MGA' => __( 'Malagasy ariary', 'learnpress' ), |
| 101 |
'MKD' => __( 'Macedonian denar', 'learnpress' ), |
| 102 |
'MMK' => __( 'Burmese kyat', 'learnpress' ), |
| 103 |
'MNT' => __( 'Mongolian tögrög', 'learnpress' ), |
| 104 |
'MOP' => __( 'Macanese pataca', 'learnpress' ), |
| 105 |
'MRU' => __( 'Mauritanian ouguiya', 'learnpress' ), |
| 106 |
'MUR' => __( 'Mauritian rupee', 'learnpress' ), |
| 107 |
'MVR' => __( 'Maldivian rufiyaa', 'learnpress' ), |
| 108 |
'MWK' => __( 'Malawian kwacha', 'learnpress' ), |
| 109 |
'MXN' => __( 'Mexican peso', 'learnpress' ), |
| 110 |
'MYR' => __( 'Malaysian ringgit', 'learnpress' ), |
| 111 |
'MZN' => __( 'Mozambican metical', 'learnpress' ), |
| 112 |
'NAD' => __( 'Namibian dollar', 'learnpress' ), |
| 113 |
'NGN' => __( 'Nigerian naira', 'learnpress' ), |
| 114 |
'NIO' => __( 'Nicaraguan córdoba', 'learnpress' ), |
| 115 |
'NOK' => __( 'Norwegian krone', 'learnpress' ), |
| 116 |
'NPR' => __( 'Nepalese rupee', 'learnpress' ), |
| 117 |
'NZD' => __( 'New Zealand dollar', 'learnpress' ), |
| 118 |
'OMR' => __( 'Omani rial', 'learnpress' ), |
| 119 |
'PAB' => __( 'Panamanian balboa', 'learnpress' ), |
| 120 |
'PEN' => __( 'Sol', 'learnpress' ), |
| 121 |
'PGK' => __( 'Papua New Guinean kina', 'learnpress' ), |
| 122 |
'PHP' => __( 'Philippine peso', 'learnpress' ), |
| 123 |
'PKR' => __( 'Pakistani rupee', 'learnpress' ), |
| 124 |
'PLN' => __( 'Polish złoty', 'learnpress' ), |
| 125 |
'PRB' => __( 'Transnistrian ruble', 'learnpress' ), |
| 126 |
'PYG' => __( 'Paraguayan guaraní', 'learnpress' ), |
| 127 |
'QAR' => __( 'Qatari riyal', 'learnpress' ), |
| 128 |
'RON' => __( 'Romanian leu', 'learnpress' ), |
| 129 |
'RSD' => __( 'Serbian dinar', 'learnpress' ), |
| 130 |
'RUB' => __( 'Russian ruble', 'learnpress' ), |
| 131 |
'RWF' => __( 'Rwandan franc', 'learnpress' ), |
| 132 |
'SAR' => __( 'Saudi riyal', 'learnpress' ), |
| 133 |
'SBD' => __( 'Solomon Islands dollar', 'learnpress' ), |
| 134 |
'SCR' => __( 'Seychellois rupee', 'learnpress' ), |
| 135 |
'SDG' => __( 'Sudanese pound', 'learnpress' ), |
| 136 |
'SEK' => __( 'Swedish krona', 'learnpress' ), |
| 137 |
'SGD' => __( 'Singapore dollar', 'learnpress' ), |
| 138 |
'SHP' => __( 'Saint Helena pound', 'learnpress' ), |
| 139 |
'SLL' => __( 'Sierra Leonean leone', 'learnpress' ), |
| 140 |
'SOS' => __( 'Somali shilling', 'learnpress' ), |
| 141 |
'SRD' => __( 'Surinamese dollar', 'learnpress' ), |
| 142 |
'SSP' => __( 'South Sudanese pound', 'learnpress' ), |
| 143 |
'STN' => __( 'São Tomé and Príncipe dobra', 'learnpress' ), |
| 144 |
'SYP' => __( 'Syrian pound', 'learnpress' ), |
| 145 |
'SZL' => __( 'Swazi lilangeni', 'learnpress' ), |
| 146 |
'THB' => __( 'Thai baht', 'learnpress' ), |
| 147 |
'TJS' => __( 'Tajikistani somoni', 'learnpress' ), |
| 148 |
'TMT' => __( 'Turkmenistan manat', 'learnpress' ), |
| 149 |
'TND' => __( 'Tunisian dinar', 'learnpress' ), |
| 150 |
'TOP' => __( 'Tongan paʻanga', 'learnpress' ), |
| 151 |
'TRY' => __( 'Turkish lira', 'learnpress' ), |
| 152 |
'TTD' => __( 'Trinidad and Tobago dollar', 'learnpress' ), |
| 153 |
'TWD' => __( 'New Taiwan dollar', 'learnpress' ), |
| 154 |
'TZS' => __( 'Tanzanian shilling', 'learnpress' ), |
| 155 |
'UAH' => __( 'Ukrainian hryvnia', 'learnpress' ), |
| 156 |
'UGX' => __( 'Ugandan shilling', 'learnpress' ), |
| 157 |
'USD' => __( 'United States (US) dollar', 'learnpress' ), |
| 158 |
'UYU' => __( 'Uruguayan peso', 'learnpress' ), |
| 159 |
'UZS' => __( 'Uzbekistani som', 'learnpress' ), |
| 160 |
'VEF' => __( 'Venezuelan bolívar (2008–2018)', 'learnpress' ), |
| 161 |
'VES' => __( 'Venezuelan bolívar', 'learnpress' ), |
| 162 |
'VND' => __( 'Vietnamese đồng', 'learnpress' ), |
| 163 |
'VUV' => __( 'Vanuatu vatu', 'learnpress' ), |
| 164 |
'WST' => __( 'Samoan tālā', 'learnpress' ), |
| 165 |
'XAF' => __( 'Central African CFA franc', 'learnpress' ), |
| 166 |
'XCD' => __( 'East Caribbean dollar', 'learnpress' ), |
| 167 |
'XOF' => __( 'West African CFA franc', 'learnpress' ), |
| 168 |
'XPF' => __( 'CFP franc', 'learnpress' ), |
| 169 |
'YER' => __( 'Yemeni rial', 'learnpress' ), |
| 170 |
'ZAR' => __( 'South African rand', 'learnpress' ), |
| 171 |
'ZMW' => __( 'Zambian kwacha', 'learnpress' ), |
| 172 |
]; |
| 173 |
|
| 174 |
asort( $currencies ); |
| 175 |
|
| 176 |
return apply_filters( 'learn-press/currencies', array_unique( $currencies ) ); |
| 177 |
|