[WordPress] 外掛分享: Country Info Visual Editor (WYSIWYG) Button

首頁外掛目錄 › Country Info Visual Editor (WYSIWYG) Button
全新外掛
安裝啟用
尚無評分
3067 天前
最後更新
問題解決
v1.0.1 上架:2017-06-05

內容簡介

這個外掛可在可視化 (所見即所得) 編輯器中新增一個按鈕,透過世界銀行 API取得任何國家的相關資訊。
啟用外掛後,您會在可視化 (所見即所得) 編輯器中發現一個新的「地球儀」按鈕。
按下按鈕並輸入國家的兩個字母ISO代碼,外掛就可以從API中提取以下有關該國家的資訊:

國家名稱
首都
ISO代碼
地區
收入水平
人口(過去5年)
以當前USD計算的GDP(過去5年)。

提取的資訊將直接添加到編輯器中,而不需要使用任何shortcode。當文章儲存後,該資訊將以常規文本形式儲存在數據庫中。
再也不會進行API請求以再次檢索該資訊。

這個外掛的作者與世界銀行沒有任何聯繫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Country Info Visual Editor (WYSIWYG) Button」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Adds a visual editor button for pulling information about any country from The World Bank API.
You will find a new “globe” button in the visual (WYSIWYG) editor after activating the plugin.
Once the button is clicked and 2 letter ISO code of the country is entered, the plugin pulls following information from the API about the country:

Country name
Capital City
ISO Code
Region
Income Level
Population (last 5 years)
GDP in current USD (last 5 years).

Pulled information is added to the editor directly without any shortcodes. Once the post is saved, the info is saved as a regular text in the database.
No more API requests will be made to retrieve that info again.
The plugin’s author is not affiliated with The World Bank.

文章
Filter
Mastodon