Title: WP Country
Author: andreyk
Published: <strong>28 دسامبر 2013</strong>
Last modified: 16 آوریل 2016

---

جستجوی افزونه‌ها

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# WP Country

 توسط [andreyk](https://profiles.wordpress.org/andreyk/)

[دانلود](https://downloads.wordpress.org/plugin/wp-country.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/wp-country/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/wp-country/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/wp-country/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/wp-country/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/wp-country/)

## توضیحات

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.

## نصب

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

## سوالات متداول

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.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“WP Country” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

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

[ترجمه “WP Country” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/wp-country)

### علاقه‌ مند به توسعه هستید؟

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-country/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-country/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wp-country/) by 
[RSS](https://plugins.trac.wordpress.org/log/wp-country/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

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

## اطلاعات

 *  نگارش **0.2**
 *  Last updated **10 سال پیش**
 *  نصب‌های فعال **90+**
 *  نگارش وردپرس ** 3.6 یا بالاتر **
 *  Tested up to **4.5.33**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/wp-country/)
 * Tags
 * [countries list](https://fa.wordpress.org/plugins/tags/countries-list/)[country](https://fa.wordpress.org/plugins/tags/country/)
   [dropdown](https://fa.wordpress.org/plugins/tags/dropdown/)[select](https://fa.wordpress.org/plugins/tags/select/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/wp-country/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

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

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/wp-country/reviews/)

## مشارکت کنندگان

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

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/wp-country/)