WC_Countries::country_exists( string $country_code )
Check if a given code represents a valid ISO 3166-1 alpha-2 code for a country known to us.
Description Description
Parameters Parameters
- $country_code
-
(Required) The country code to check as a ISO 3166-1 alpha-2 code.
Return Return
(bool) True if the country is known to us, false otherwise.
Source Source
File: includes/class-wc-countries.php
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |