parameter('country') ?? wu_request('billing_country'); if ($country && $state) { $state = strtoupper((string) $state); $allowed_states = array_keys(wu_get_country_states(strtoupper((string) $country), false)); if (!empty($allowed_states)) { $check = in_array($state, $allowed_states, true); } // end if; } // end if; return $check; } // end check; } // end class State;