Created
November 7, 2019 11:22
-
-
Save DevWael/ccccce2a07c569d41ddee5f9fd89b0f4 to your computer and use it in GitHub Desktop.
add saudi arabia and kuwait states to woocommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_states', 'dw_woocommerce_states' ); | |
function dw_woocommerce_states( $states ) { | |
$states['KW'] = array( | |
'KWQ' => __('Dasmān','porto'), | |
'KWA' => __('Sharq','porto'), | |
'KWZ' => __('Mirgāb','porto'), | |
'KWW' => __('Jibla','porto'), | |
'KWS' => __('Dasma','porto'), | |
'KWX' => __('Daiya','porto'), | |
'KWE' => __('Sawābir','porto'), | |
'KWD' => __('Salhiya','porto'), | |
'KWC' => __('Bneid il-Gār','porto'), | |
'KWR' => __('Kaifan','porto'), | |
'KWF' => __('Mansūriya','porto'), | |
'KWV' => __('Abdullah as-Salim suburb','porto'), | |
'KWT' => __('Nuzha','porto'), | |
'KWG' => __('Faiha','porto'), | |
'KWB' => __('Shamiya','porto'), | |
'KWY' => __('Rawda','porto'), | |
'KWH' => __('Adiliya','porto'), | |
'KWN' => __('Khaldiya','porto'), | |
'KWU' => __('Qadsiya','porto'), | |
'KWJ' => __('Qurtuba','porto'), | |
'KWM' => __('Surra','porto'), | |
'KWI' => __('Yarmūk','porto'), | |
'KWK' => __('Shuwaikh','porto'), | |
'KWO' => __('Rai','porto'), | |
'KWL' => __('Ghirnata','porto'), | |
'KWP' => __('Sulaibikhat','porto'), | |
'KW1' => __('Doha','porto'), | |
'KW2' => __('Nahdha','porto'), | |
'KW3' => __('Jabir al-Ahmad City','porto'), | |
'KW4' => __('Qairawān','porto'), | |
); | |
$states['SA'] = array( | |
'SAH' => __('Riyadh','porto'), | |
'SAK' => __('Makkah','porto'), | |
'SAD' => __('Al-Madina','porto'), | |
'SAR' => __('Buraydah','porto'), | |
'SAM' => __('Al-Damam','porto'), | |
'SAB' => __('Abha','porto'), | |
'SAU' => __('Tabouk','porto'), | |
'SAS' => __('Hail','porto'), | |
'SAE' => __('Arar','porto'), | |
'SAZ' => __('Gazan','porto'), | |
'SAN' => __('Nagran','porto'), | |
'SAL' => __('Albaha','porto'), | |
'SAW' => __('Algouf','porto'), | |
); | |
return $states; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment