WooCommerce User Registration – Disable state validation for countries with no state
I have added extra registration fields to the WooCommerce registration form. Among these fields are fields for state and country. This is how I get the state field in the form: $field = [ 'type' => 'state', 'label' => 'State',…