Plugin info

Total downloads: 3,442
Active installs: 100
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 4/16/2016 (3546 days ago)
Added to WordPress: 12/28/2013 (12 years old)
Minimum WordPress version: 3.6
Tested up to WordPress version: 4.5.33
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3546 days ago

20/100

Is WP Country abandoned?

Possibly abandoned (last update 3546 days ago).

Compatibility

Requires WordPress: 3.6
Tested up to: 4.5.33
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

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.

Installation

  1. Upload the wp-country folder to the /wp-content/plugins/ directory.
  2. Activate the plugin.

Frequently Asked Questions

Advanced usage: dropdown($blank, $echo, $args)

Parameters Description

  • blank: if not empty then <option value=''> will be added into dropdown list. Default: ”.

  • echo: prints the list if true else returns. Default: true.

  • args: an array of extra parameters. Default: array('include' => array(), 'exclude' => array(), 'name' => 'country', 'id' => '', 'selected' => array(), 'multiple' => false).

Description of `args` components

  • include, exclude: an array of country codes (alpha2) should be included into dropdown list or excluded from it.

  • name: name attribute of the SELECT tag.

  • id: id attribute (not displayed by default).

  • class: class attribute of the SELECT tag (empty by default).

  • multiple: enables multiple select.

  • selected: adds the selected attribute.

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

  • 0.2 Add class parameter for dropdown list.
  • 0.1 Initial version.