WP Country
v0.2andreyk · 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.