By on February 4, 2023 in
UA-59519254-2
/**
* Sell only in California
*/
function wc_sell_only_states( $states ) {
$states['US'] = array(
'CA' => __( 'California', 'woocommerce' ),
);
return $states;
}
add_filter( 'woocommerce_states', 'wc_sell_only_states' );
Comments are closed.