跳到内容

WP Country

v0.2

andreyk · 2013年12月28日 上架

Provides WP_Country PHP class to get countries list as an array and dropdown country select for use in other plugins and themes.

正在使用
70+
评分
暂无
累计下载
4,269
最近更新
2016年4月16日
需要 WordPress 3.6+已测试到 4.5.33

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums