Provides WP_Country PHP class to get countries list as an array and dropdown country select for use in other plugins and themes.
As of April 2026, WP Country is a WordPress select plugin with 100 active installations and a 0/5 rating0. It has been downloaded 3.6K+ times in total. Requires WordPress 3.6+ and PHP false+. Available on WordPress.org since 2013. Last updated 9 years ago — may have compatibility concerns. Top alternative: Responsive Select Menu.
To use the WP Country plugin in your theme or plugin add global $wp_country; into your theme or plugin PHP file,
then:
$wp_country->countries_list() is an array of country names
$wp_country->dropdown() prints or returns countries as dropdown HTML tag.
$wp_country->name($alpha2) returns the name of a country by it’s 2-character code.
Russian translation is available now.
| WordPress | 3.6+ requiredTested up to 4.5.33 |
| PHP | false+ required |
class parameter for dropdown list.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.