. esc_html( $user->user_login ) . ''; } } else { $user_list .= '
  • ' . __( 'No users found', 'easy-digital-downloads' ) . '
  • '; } $user_list .= ''; echo json_encode( array( 'results' => $user_list ) ); } die(); } add_action( 'wp_ajax_edd_search_users', 'edd_ajax_search_users' ); PY' => 'Pondicherry (Puducherry)' ); return apply_filters( 'edd_indian_states', $states ); } /** * Get Iranian States * * @since 2.2.3 * @return array $states A list of states */ function edd_get_iranian_states_list() { $states = array( '' => '', 'KHZ' => 'Khuzestan', 'THR' => 'Tehran', 'ILM' => 'Ilaam', 'BHR' => 'Bushehr', 'ADL' => 'Ardabil', 'ESF' => 'Isfahan', 'YZD' => 'Yazd', 'KRH' => 'Kermanshah', 'KRN' => 'Kerman', 'HDN' => 'Hamadan', 'GZN' => 'Ghazvin', 'ZJN' => 'Zanjan', 'LRS' => 'Luristan', 'ABZ' => 'Alborz', 'EAZ' => 'East Azerbaijan', 'WAZ' => 'West Azerbaijan', 'CHB' => 'Chaharmahal and Bakhtiari', 'SKH' => 'South Khorasan', 'RKH' => 'Razavi Khorasan', 'NKH' => 'North Khorasan', 'SMN' => 'Semnan', 'FRS' => 'Fars', 'QHM' => 'Qom', 'KRD' => 'Kurdistan', 'KBD' => 'Kohgiluyeh and BoyerAhmad', 'GLS' => 'Golestan', 'GIL' => 'Gilan', 'MZN' => 'Mazandaran', 'MKZ' => 'Markazi', 'HRZ' => 'Hormozgan', 'SBN' => 'Sistan and Baluchestan' ); return apply_filters( 'edd_iranian_states', $states ); } /** * Get Italian Provinces * * @since 2.2.3 * @return array $states A list of states */ function edd_get_italian_states_list() { $states = array( '' => '', 'AG' => 'Agrigento', 'AL' => 'Alessandria', 'AN' => 'Ancona', 'AO' => 'Aosta', 'AR' => 'Arezzo', 'AP' => 'Ascoli Piceno', 'AT' => 'Asti', 'AV' => 'Avellino', 'BA' => 'Bari', 'BT' => 'Barletta-Andria-Trani', 'BL' => 'Belluno', 'BN' => 'Benevento', 'BG' => 'Bergamo', 'BI' => 'Biella', 'BO' => 'Bologna', 'BZ' => 'Bolzano', 'BS' => 'Brescia', 'BR' => 'Brindisi', 'CA' => 'Cagliari', 'CL' => 'Caltanissetta', 'CB' => 'Campobasso', 'CI' => 'Caltanissetta', 'CE' => 'Caserta', 'CT' => 'Catania', 'CZ' => 'Catanzaro', 'CH' => 'Chieti', 'CO' => 'Como', 'CS' => 'Cosenza', 'CR' => 'Cremona', 'KR' => 'Crotone', 'CN' => 'Cuneo', 'EN' => 'Enna', 'FM' => 'Fermo', 'FE' => 'Ferrara', 'FI' => 'Firenze', 'FG' => 'Foggia', 'FC' => 'Forli-Cesena', 'FR' => 'Frosinone', 'GE' => 'Genoa', 'GO' => 'Gorizia', 'GR' => 'Grosseto', 'IM' => 'Imperia', 'IS' => 'Isernia', 'SP' => 'La Spezia', 'AQ' => 'L'Aquila', 'LT' => 'Latina', 'LE' => 'Lecce', 'LC' => 'Lecco', 'LI' => 'Livorno', 'LO' => 'Lodi', 'LU' => 'Lucca', 'MC' => 'Macerata', 'MN' => 'Mantova', 'MS' => 'Massa-Carrara', 'MT' => 'Matera', 'ME' => 'Messina', 'MI' => 'Milano', 'MO' => 'Modena', 'MB' => 'Monza e della Brianza', 'NA' => 'Napoli', 'NO' => 'Novara', 'NU' => 'Nuoro', 'OT' => 'Olbia-Tempio', 'OR' => 'Oristano', 'PD' => 'Padova', 'PA' => 'Palermo', 'PR' => 'Parma', 'PV' => 'Pavia', 'PG' => 'Perugia', 'PU' => 'Pesaro e Urbino', 'PE' => 'Pescara', 'PC' => 'Piacenza', 'PI' => 'Pisa', 'PT' => 'Pistoia', 'PN' => 'Pordenone', 'PZ' => 'Potenza', 'PO' => 'Prato', 'RG' => 'Ragusa', 'RA' => 'Ravenna', 'RC' => 'Reggio Calabria', 'RE' => 'Reggio Emilia', 'RI' => 'Rieti', 'RN' => 'Rimini', 'RM' => 'Roma', 'RO' => 'Rovigo', 'SA' => 'Salerno', 'VS' => 'Medio Campidano', 'SS' => 'Sassari', 'SV' => 'Savona', 'SI' => 'Siena', 'SR' => 'Siracusa', 'SO' => 'Sondrio', 'TA' => 'Taranto', 'TE' => 'Teramo', 'TR' => 'Terni', 'TO' => 'Torino', 'OG' => 'Ogliastra', 'TP' => 'Trapani', 'TN' => 'Trento', 'TV' => 'Treviso', 'TS' => 'Trieste', 'UD' => 'Udine', 'VA' => 'Varesa', 'VE' => 'Venezia', 'VB' => 'Verbano-Cusio-Ossola', 'VC' => 'Vercelli', 'VR' => 'Verona', 'VV' => 'Vibo Valentia', 'VI' => 'Vicenza', 'VT' => 'Viterbo' ); return apply_filters( 'edd_italian_states', $states ); } /** * Get Malaysian States * * @since 1.6 * @return array $states A list of states */ function edd_get_malaysian_states_list() { $states = array( '' => '', 'JHR' => 'Johor', 'KDH' => 'Kedah', 'KTN' => 'Kelantan', 'MLK' => 'Melaka', 'NSN' => 'Negeri Sembilan', 'PHG' => 'Pahang', 'PRK' => 'Perak', 'PLS' => 'Perlis', 'PNG' => 'Pulau Pinang', 'SBH' => 'Sabah', 'SWK' => 'Sarawak', 'SGR' => 'Selangor', 'TRG' => 'Terengganu', 'KUL' => 'W.P. Kuala Lumpur', 'LBN' => 'W.P. Labuan', 'PJY' => 'W.P. Putrajaya' ); return apply_filters( 'edd_malaysian_states', $states ); } /** * Get Mexican States * * @since 2.2.3 * @return array $states A list of states */ function edd_get_mexican_states_list() { $states = array( '' => '', 'DIF' => 'Distrito Federal', 'JAL' => 'Jalisco', 'NLE' => 'Nuevo León', 'AGU' => 'Aguascalientes', 'BCN' => 'Baja California Norte', 'BCS' => 'Baja California Sur', 'CAM' => 'Campeche', 'CHP' => 'Chiapas', 'CHH' => 'Chihuahua', 'COA' => 'Coahuila', 'COL' => 'Colima', 'DUR' => 'Durango', 'GUA' => 'Guanajuato', 'GRO' => 'Guerrero', 'HID' => 'Hidalgo', 'MEX' => 'Edo. de México', 'MIC' => 'Michoacán', 'MOR' => 'Morelos', 'NAY' => 'Nayarit', 'OAX' => 'Oaxaca', 'PUE' => 'Puebla', 'QUE' => 'Querétaro', 'ROO' => 'Quintana Roo', 'SLP' => 'San Luis Potosí', 'SIN' => 'Sinaloa', 'SON' => 'Sonora', 'TAB' => 'Tabasco', 'TAM' => 'Tamaulipas', 'TLA' => 'Tlaxcala', 'VER' => 'Veracruz', 'YUC' => 'Yucatán', 'ZAC' => 'Zacatecas' ); return apply_filters( 'edd_mexican_states', $states ); } /** * Get Nepalese States (Districts) * * @since 2.2.3 * @return array $states A list of states */ function edd_get_nepalese_states_list() { $states = array( '' => '', 'ILL' => 'Illam', 'JHA' => 'Jhapa', 'PAN' => 'Panchthar', 'TAP' => 'Taplejung', 'BHO' => 'Bhojpur', 'DKA' => 'Dhankuta', 'MOR' => 'Morang', 'SUN' => 'Sunsari', 'SAN' => 'Sankhuwa', 'TER' => 'Terhathum', 'KHO' => 'Khotang', 'OKH' => 'Okhaldhunga', 'SAP' => 'Saptari', 'SIR' => 'Siraha', 'SOL' => 'Solukhumbu', 'UDA' => 'Udayapur', 'DHA' => 'Dhanusa', 'DLK' => 'Dolakha', 'MOH' => 'Mohottari', 'RAM' => 'Ramechha', 'SAR' => 'Sarlahi', 'SIN' => 'Sindhuli', 'BHA' => 'Bhaktapur', 'DHD' => 'Dhading', 'KTM' => 'Kathmandu', 'KAV' => 'Kavrepalanchowk', 'LAL' => 'Lalitpur', 'NUW' => 'Nuwakot', 'RAS' => 'Rasuwa', 'SPC' => 'Sindhupalchowk', 'BAR' => 'Bara', 'CHI' => 'Chitwan', 'MAK' => 'Makwanpur', 'PAR' => 'Parsa', 'RAU' => 'Rautahat', 'GOR' => 'Gorkha', 'KAS' => 'Kaski', 'LAM' => 'Lamjung', 'MAN' => 'Manang', 'SYN' => 'Syangja', 'TAN' => 'Tanahun', 'BAG' => 'Baglung', 'PBT' => 'Parbat', 'MUS' => 'Mustang', 'MYG' => 'Myagdi', 'AGR' => 'Agrghakanchi', 'GUL' => 'Gulmi', 'KAP' => 'Kapilbastu', 'NAW' => 'Nawalparasi', 'PAL' => 'Palpa', 'RUP' => 'Rupandehi', 'DAN' => 'Dang', 'PYU' => 'Pyuthan', 'ROL' => 'Rolpa', 'RUK' => 'Rukum', 'SAL' => 'Salyan', 'BAN' => 'Banke', 'BDA' => 'Bardiya', 'DAI' => 'Dailekh', 'JAJ' => 'Jajarkot', 'SUR' => 'Surkhet', 'DOL' => 'Dolpa', 'HUM' => 'Humla', 'JUM' => 'Jumla', 'KAL' => 'Kalikot', 'MUG' => 'Mugu', 'ACH' => 'Achham', 'BJH' => 'Bajhang', 'BJU' => 'Bajura', 'DOT' => 'Doti', 'KAI' => 'Kailali', 'BAI' => 'Baitadi', 'DAD' => 'Dadeldhura', 'DAR' => 'Darchula', 'KAN' => 'Kanchanpur' ); return apply_filters( 'edd_nepalese_states', $states ); } /** * Get South African States * * @since 1.6 * @return array $states A list of states */ function edd_get_south_african_states_list() { $states = array( '' => '', 'EC' => 'Eastern Cape', 'FS' => 'Free State', 'GP' => 'Gauteng', 'KZN' => 'KwaZulu-Natal', 'LP' => 'Limpopo', 'MP' => 'Mpumalanga', 'NC' => 'Northern Cape', 'NW' => 'North West', 'WC' => 'Western Cape' ); return apply_filters( 'edd_south_african_states', $states ); } /** * Get Thailand States * * @since 1.6 * @return array $states A list of states */ function edd_get_thailand_states_list() { $states = array( '' => '', 'TH-37' => 'Amnat Charoen (อำนาจเจริญ)', 'TH-15' => 'Ang Thong (อ่างทอง)', 'TH-14' => 'Ayutthaya (พระนครศรีอยุธยา)', 'TH-10' => 'Bangkok (กรุงเทพมหานคร)', 'TH-38' => 'Bueng Kan (บึงกาฬ)', 'TH-31' => 'Buri Ram (บุรีรัมย์)', 'TH-24' => 'Chachoengsao (ฉะเชิงเทรา)', 'TH-18' => 'Chai Nat (ชัยนาท)', 'TH-36' => 'Chaiyaphum (ชัยภูมิ)', 'TH-22' => 'Chanthaburi (จันทบุรี)', 'TH-50' => 'Chiang Mai (เชียงใหม่)', 'TH-57' => 'Chiang Rai (เชียงราย)', 'TH-20' => 'Chonburi (ชลบุรี)', 'TH-86' => 'Chumphon (ชุมพร)', 'TH-46' => 'Kalasin (กาฬสินธุ์)', 'TH-62' => 'Kamphaeng Phet (กำแพงเพชร)', 'TH-71' => 'Kanchanaburi (กาญจนบุรี)', 'TH-40' => 'Khon Kaen (ขอนแก่น)', 'TH-81' => 'Krabi (กระบี่)', 'TH-52' => 'Lampang (ลำปาง)', 'TH-51' => 'Lamphun (ลำพูน)', 'TH-42' => 'Loei (เลย)', 'TH-16' => 'Lopburi (ลพบุรี)', 'TH-58' => 'Mae Hong Son (แม่ฮ่องสอน)', 'TH-44' => 'Maha Sarakham (มหาสารคาม)', 'TH-49' => 'Mukdahan (มุกดาหาร)', 'TH-26' => 'Nakhon Nayok (นครนายก)', 'TH-73' => 'Nakhon Pathom (นครปฐม)', 'TH-48' => 'Nakhon Phanom (นครพนม)', 'TH-30' => 'Nakhon Ratchasima (นครราชสีมา)', 'TH-60' => 'Nakhon Sawan (นครสวรรค์)', 'TH-80' => 'Nakhon Si Thammarat (นครศรีธรรมราช)', 'TH-55' => 'Nan (น่าน)', 'TH-96' => 'Narathiwat (นราธิวาส)', 'TH-39' => 'Nong Bua Lam Phu (หนองบัวลำภู)', 'TH-43' => 'Nong Khai (หนองคาย)', 'TH-12' => 'Nonthaburi (นนทบุรี)', 'TH-13' => 'Pathum Thani (ปทุมธานี)', 'TH-94' => 'Pattani (ปัตตานี)', 'TH-82' => 'Phang Nga (พังงา)', 'TH-93' => 'Phatthalung (พัทลุง)', 'TH-56' => 'Phayao (พะเยา)', 'TH-67' => 'Phetchabun (เพชรบูรณ์)', 'TH-76' => 'Phetchaburi (เพชรบุรี)', 'TH-66' => 'Phichit (พิจิตร)', 'TH-65' => 'Phitsanulok (พิษณุโลก)', 'TH-54' => 'Phrae (แพร่)', 'TH-83' => 'Phuket (ภูเก็ต)', 'TH-25' => 'Prachin Buri (ปราจีนบุรี)', 'TH-77' => 'Prachuap Khiri Khan (ประจวบคีรีขันธ์)', 'TH-85' => 'Ranong (ระนอง)', 'TH-70' => 'Ratchaburi (ราชบุรี)', 'TH-21' => 'Rayong (ระยอง)', 'TH-45' => 'Roi Et (ร้อยเอ็ด)', 'TH-27' => 'Sa Kaeo (สระแก้ว)', 'TH-47' => 'Sakon Nakhon (สกลนคร)', 'TH-11' => 'Samut Prakan (สมุทรปราการ)', 'TH-74' => 'Samut Sakhon (สมุทรสาคร)', 'TH-75' => 'Samut Songkhram (สมุทรสงคราม)', 'TH-19' => 'Saraburi (สระบุรี)', 'TH-91' => 'Satun (สตูล)', 'TH-17' => 'Sing Buri (สิงห์บุรี)', 'TH-33' => 'Sisaket (ศรีสะเกษ)', 'TH-90' => 'Songkhla (สงขลา)', 'TH-64' => 'Sukhothai (สุโขทัย)', 'TH-72' => 'Suphan Buri (สุพรรณบุรี)', 'TH-84' => 'Surat Thani (สุราษฎร์ธานี)', 'TH-32' => 'Surin (สุรินทร์)', 'TH-63' => 'Tak (ตาก)', 'TH-92' => 'Trang (ตรัง)', 'TH-23' => 'Trat (ตราด)', 'TH-34' => 'Ubon Ratchathani (อุบลราชธานี)', 'TH-41' => 'Udon Thani (อุดรธานี)', 'TH-61' => 'Uthai Thani (อุทัยธานี)', 'TH-53' => 'Uttaradit (อุตรดิตถ์)', 'TH-95' => 'Yala (ยะลา)', 'TH-35' => 'Yasothon (ยโสธร)' ); return apply_filters( 'edd_thailand_states', $states ); } /** * Get Turkey States * * @since 2.2.3 * @return array $states A list of states */ function edd_get_turkey_states_list() { $states = array( '' => '', 'TR01' => 'Adana', 'TR02' => 'Adıyaman', 'TR03' => 'Afyon', 'TR04' => 'Ağrı', 'TR05' => 'Amasya', 'TR06' => 'Ankara', 'TR07' => 'Antalya', 'TR08' => 'Artvin', 'TR09' => 'Aydın', 'TR10' => 'Balıkesir', 'TR11' => 'Bilecik', 'TR12' => 'Bingöl', 'TR13' => 'Bitlis', 'TR14' => 'Bolu', 'TR15' => 'Burdur', 'TR16' => 'Bursa', 'TR17' => 'Çanakkale', 'TR18' => 'Çankıkesir', 'TR19' => 'Çorum', 'TR20' => 'Denizli', 'TR21' => 'Diyarbakır', 'TR22' => 'Edirne', 'TR23' => 'Elazığ', 'TR24' => 'Erzincan', 'TR25' => 'Erzurum', 'TR26' => 'Eskişehir', 'TR27' => 'Gaziantep', 'TR28' => 'Giresun', 'TR29' => 'Gümüşhane', 'TR30' => 'Hakkari', 'TR31' => 'Hatay', 'TR32' => 'Isparta', 'TR33' => 'İçel', 'TR34' => 'İstanbul', 'TR35' => 'İzmir', 'TR36' => 'Kars', 'TR37' => 'Kastamonu', 'TR38' => 'Kayseri', 'TR39' => 'Kırklareli', 'TR40' => 'Kırşehir', 'TR41' => 'Kocaeli', 'TR42' => 'Konya', 'TR43' => 'Kütahya', 'TR44' => 'Malatya', 'TR45' => 'Manisa', 'TR46' => 'Kahramanmaraş', 'TR47' => 'Mardin', 'TR48' => 'Muğla', 'TR49' => 'Muş', 'TR50' => 'Nevşehir', 'TR51' => 'Niğde', 'TR52' => 'Ordu', 'TR53' => 'Rize', 'TR54' => 'Sakarya', 'TR55' => 'Samsun', 'TR56' => 'Siirt', 'TR57' => 'Sinop', 'TR58' => 'Sivas', 'TR59' => 'Tekirdağ', 'TR60' => 'Tokat', 'TR61' => 'Trabzon', 'TR62' => 'Tunceli', 'TR63' => 'Şanlıurfa', 'TR64' => 'Uşak', 'TR65' => 'Van', 'TR66' => 'Yozgat', 'TR67' => 'Zonguldak', 'TR68' => 'Aksaray', 'TR69' => 'Bayburt', 'TR70' => 'Karaman', 'TR71' => 'Kırıkkale', 'TR72' => 'Batman', 'TR73' => 'Şırnak', 'TR74' => 'Bartın', 'TR75' => 'Ardahan', 'TR76' => 'Iğdır', 'TR77' => 'Yalova', 'TR78' => 'Karabük', 'TR79' => 'Kilis', 'TR80' => 'Osmaniye', 'TR81' => 'Düzce' ); return apply_filters( 'edd_turkey_states', $states ); } /** * Get Spain States * * @since 2.2 * @return array $states A list of states */ function edd_get_spain_states_list() { $states = array( '' => '', 'C' => __( 'A Coruña', 'easy-digital-downloads' ), 'VI' => __( 'Araba', 'easy-digital-downloads' ), 'AB' => __( 'Albacete', 'easy-digital-downloads' ), 'A' => __( 'Alicante', 'easy-digital-downloads' ), 'AL' => __( 'Almería', 'easy-digital-downloads' ), 'O' => __( 'Asturias', 'easy-digital-downloads' ), 'AV' => __( 'Ávila', 'easy-digital-downloads' ), 'BA' => __( 'Badajoz', 'easy-digital-downloads' ), 'PM' => __( 'Baleares', 'easy-digital-downloads' ), 'B' => __( 'Barcelona', 'easy-digital-downloads' ), 'BU' => __( 'Burgos', 'easy-digital-downloads' ), 'CC' => __( 'Cáceres', 'easy-digital-downloads' ), 'CA' => __( 'Cádiz', 'easy-digital-downloads' ), 'S' => __( 'Cantabria', 'easy-digital-downloads' ), 'CS' => __( 'Castellón', 'easy-digital-downloads' ), 'CE' => __( 'Ceuta', 'easy-digital-downloads' ), 'CR' => __( 'Ciudad Real', 'easy-digital-downloads' ), 'CO' => __( 'Córdoba', 'easy-digital-downloads' ), 'CU' => __( 'Cuenca', 'easy-digital-downloads' ), 'GI' => __( 'Girona', 'easy-digital-downloads' ), 'GR' => __( 'Granada', 'easy-digital-downloads' ), 'GU' => __( 'Guadalajara', 'easy-digital-downloads' ), 'SS' => __( 'Gipuzkoa', 'easy-digital-downloads' ), 'H' => __( 'Huelva', 'easy-digital-downloads' ), 'HU' => __( 'Huesca', 'easy-digital-downloads' ), 'J' => __( 'Jaén', 'easy-digital-downloads' ), 'LO' => __( 'La Rioja', 'easy-digital-downloads' ), 'GC' => __( 'Las Palmas', 'easy-digital-downloads' ), 'LE' => __( 'León', 'easy-digital-downloads' ), 'L' => __( 'Lleida', 'easy-digital-downloads' ), 'LU' => __( 'Lugo', 'easy-digital-downloads' ), 'M' => __( 'Madrid', 'easy-digital-downloads' ), 'MA' => __( 'Málaga', 'easy-digital-downloads' ), 'ML' => __( 'Melilla', 'easy-digital-downloads' ), 'MU' => __( 'Murcia', 'easy-digital-downloads' ), 'NA' => __( 'Navarra', 'easy-digital-downloads' ), 'OR' => __( 'Ourense', 'easy-digital-downloads' ), 'P' => __( 'Palencia', 'easy-digital-downloads' ), 'PO' => __( 'Pontevedra', 'easy-digital-downloads' ), 'SA' => __( 'Salamanca', 'easy-digital-downloads' ), 'TF' => __( 'Santa Cruz de Tenerife', 'easy-digital-downloads' ), 'SG' => __( 'Segovia', 'easy-digital-downloads' ), 'SE' => __( 'Sevilla', 'easy-digital-downloads' ), 'SO' => __( 'Soria', 'easy-digital-downloads' ), 'T' => __( 'Tarragona', 'easy-digital-downloads' ), 'TE' => __( 'Teruel', 'easy-digital-downloads' ), 'TO' => __( 'Toledo', 'easy-digital-downloads' ), 'V' => __( 'Valencia', 'easy-digital-downloads' ), 'VA' => __( 'Valladolid', 'easy-digital-downloads' ), 'BI' => __( 'Bizkaia', 'easy-digital-downloads' ), 'ZA' => __( 'Zamora', 'easy-digital-downloads' ), 'Z' => __( 'Zaragoza', 'easy-digital-downloads' ) ); return apply_filters( 'edd_spain_states', $states ); } /** * Given a country code, return the country name * * @since 2.8.7 * @param string $country_code The ISO Code for the country * * @return string */ function edd_get_country_name( $country_code = '' ) { $country_list = edd_get_country_list(); $country_name = isset( $country_list[ $country_code ] ) ? $country_list[ $country_code ] : $country_code; return apply_filters( 'edd_get_country_name', $country_name, $country_code ); } /** * Given a country and state code, return the state name * * @since 2.9 * @param string $country_code The ISO Code for the country * @param string $state_code The ISO Code for the state * * @return string */ function edd_get_state_name( $country_code = '', $state_code = '' ) { $states_list = edd_get_shop_states( $country_code ); $state_name = isset( $states_list[ $state_code ] ) ? $states_list[ $state_code ] : $state_code; return apply_filters( 'edd_get_state_name', $state_name, $state_code ); }