Littles Down Under – adult baby wear Header
add_filter( 'woocommerce_checkout_fields', 'custom_override_default_address_fields' ); function custom_override_default_address_fields($fields){ global $woocommerce; $country = $woocommerce->customer->get_country(); if($country !== 'US'){ $fields['billing']['state']['required'] = false; $fields['shipping']['state']['required'] = false; } return $fields; }