Title: WP Country
Author: andreyk
Published: <strong>28. Dezember 2013</strong>
Last modified: 16. April 2016

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/wp-country.svg)

# WP Country

 Von [andreyk](https://profiles.wordpress.org/andreyk/)

[Herunterladen](https://downloads.wordpress.org/plugin/wp-country.zip)

 * [Details](https://de.wordpress.org/plugins/wp-country/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/wp-country/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/wp-country/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/wp-country/#developers)

 [Support](https://wordpress.org/support/plugin/wp-country/)

## Beschreibung

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.

## FAQ

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.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„WP Country“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin 
mitgewirkt:

Mitwirkende

 *   [ andreyk ](https://profiles.wordpress.org/andreyk/)

[Übersetze „WP Country“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/wp-country)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/wp-country/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/wp-country/) an 
oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/wp-country/)
per [RSS](https://plugins.trac.wordpress.org/log/wp-country/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

 * 0.2 Add `class` parameter for dropdown list.
 * 0.1 Initial version.

## Meta

 *  Version **0.2**
 *  Zuletzt aktualisiert **vor 11 Jahren**
 *  Aktive Installationen **80+**
 *  WordPress-Version ** 3.6 oder höher **
 *  Getestet bis **4.5.33**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/wp-country/)
 * Schlagwörter
 * [countries list](https://de.wordpress.org/plugins/tags/countries-list/)[country](https://de.wordpress.org/plugins/tags/country/)
   [dropdown](https://de.wordpress.org/plugins/tags/dropdown/)[select](https://de.wordpress.org/plugins/tags/select/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/wp-country/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Deine Rezension](https://wordpress.org/support/plugin/wp-country/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/wp-country/reviews/)

## Mitwirkende

 *   [ andreyk ](https://profiles.wordpress.org/andreyk/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/wp-country/)