Set Woocommerce State

Most clients want to limit the number of states they sell to…but for reasons beyond comprehension Woocommerce does not make this easy.

Here is some code to exclude a few state.

You  could also set the $states[‘US’] array to just the states you want if that would be easier.