Home › Forums › WoodMart support forum › checkout city dropdown › Reply To: checkout city dropdown
toushibc
Yes I understand dear
I got this code also from your support forum
I was amazed actually by seeing the support forum before buy the theme
I hope you will not disappoint me
It’s just a piece of code you if you can combine and provide can solve this
add_filter( ‘wc_city_select_cities’, ‘my_cities’ );
/**
* Replace XX with the country code. Instead of YYY, ZZZ use actual state codes.
*/
function my_cities( $cities ) {
$cities[‘XX’] = array(
‘YYY’ => array(
‘City ‘,
‘Another City’
),
‘ZZZ’ => array(
‘City 3’,
‘City 4’
)
);
return $cities;
}
this code and before code combine can work
all code got from your support forum
It will be highly appreciated if you can help me on this please