WP Country
Provides WP_Country PHP class to get countries list as an array and dropdown country select for use in other plugins and themes.
Ratings
Last updated
April 16, 2016
Version
0.2
Active installations
100
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.
This plugin is available for download to be used on your WordPress self-hosted installation.