Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[General Snippets] Add or modify states
/**
* 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;
}
@mustafa2731

This comment has been minimized.

Copy link

@mustafa2731 mustafa2731 commented Feb 11, 2020

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

@xDmiguelxD

This comment has been minimized.

Copy link

@xDmiguelxD xDmiguelxD commented Sep 2, 2020

El código no sirve,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.