[WordPress] 外掛分享: WP Country

首頁外掛目錄 › WP Country
100+
安裝啟用
尚無評分
3623 天前
最後更新
問題解決
WordPress 3.6+ v0.2 上架:2013-12-27

內容簡介

使用 WP Country 外掛程式在你的佈景主題或插件中,請在你的佈景主題或插件 PHP 檔中添加 global $wp_country;,
然後:

$wp_country->countries_list() 是一個包含國家名稱的陣列

$wp_country->dropdown() 列印或回傳國家作為下拉式選單的 HTML 標籤。

$wp_country->name($alpha2) 透過 2 個字元的代碼回傳國家名稱。

現在提供俄文翻譯版本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Mastodon