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.


Top ↑

Return Return

(bool) True if the country is known to us, false otherwise.


Top ↑

Source Source

File: includes/class-wc-countries.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.