Last active
May 18, 2021 02:14
-
-
Save woogists/e3de3a4f30cc461b5a059f6158a5fe51 to your computer and use it in GitHub Desktop.
[General Snippets] Add or modify states
This file contains 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
/** | |
* Add or modify States | |
*/ | |
add_filter( 'woocommerce_states', 'custom_woocommerce_states' ); | |
function custom_woocommerce_states( $states ) { | |
$states['XX'] = array( | |
'XX1' => 'State 1', | |
'XX2' => 'State 2' | |
); | |
return $states; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are startup kuwait online providers.
i need add farwaniya, salima into my shipping regions
can you help the right place to display those name ....based on that i will follow ..
can you create the code buy using these two name farwaniya , salmita under kuwait country pleaseee