Title: Currency Code
Author: stevenkellow
Published: <strong>2016 年 11 月 8 日</strong>
Last modified: 2016 年 11 月 8 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Currency Code

 作者：[stevenkellow](https://profiles.wordpress.org/stevenkellow/)

[下载](https://downloads.wordpress.org/plugin/currency-code.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/currency-code/#description)
 * [评价](https://cn.wordpress.org/plugins/currency-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/currency-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/currency-code/#developers)

 [支持](https://wordpress.org/support/plugin/currency-code/)

## 描述

Currency code lets you use live currency conversions either as a shortcode in your
content or as a widget in your sidebar.

Supports 31 different currencies, with values updating automatically on site once
a day.

Conversation values are processed by fixer.io (http://fixer.io) & currency rate 
library (hosted in /js/money.min.js) provided by Openexchangerates (https://openexchangerates.
org/). NO DATA COLLECTED BY EITHER SERVICE OR PLUGIN.

Fixer.io Licence: https://github.com/hakanensari/fixer-io/blob/master/LICENSE
 OpenExchangeRates
Licence: https://github.com/openexchangerates/money.js/blob/master/license

### FAQ / Info

### Shortcode

To use the shortcode, simply use something like the default value below in your 
content:

[currency from=”GBP” to=”USD” round=”2″]

You can replace the currency values with any of the supported currencies, which 
are listed below.

The round attribute controls to how many decimal places the figure display will 
round to.

The sample output for this is:

1 GBP = 1.33 USD

### Widget

To use the widget go to Appearance -> Widgets and drag the Currency Converter widget
into one of your sidebars.

The sample output of the widget is the same as the shortcode:

1 GBP = 1.33 USD

To see how the widget works code-wise check out the JSFiddle the widget is built
from (https://jsfiddle.net/stevenkellow/x3hdtja6/2/)

### Currencies

Here are the 31 available currencies for use with this plugin:

AUD = Australian Dollars
 BRL = Brazilian Reals BGN = Bulgarian Levs CAD = Canadian
Dollars CNY = Chinese Yuan Renminbi HRK = Croatian Kunas CZK = Czech Koruna DKK 
= Danish Kroner EUR = Euros HKD = Hong Kong Dollar HUF = Hungarian Florins INR =
Indian Rupee IDR = Indonesian Rupiah ILS = Israeli Shekel JPY = Japanese Yen KRW
= Korean Won MYR = Malaysian Ringgits MXN = Mexican Pesos NZD = New Zealand Dollar
NOK = Norwegian Kroner PHP = Philippine Pesos PLN = Polish Zloty RON = Romanian 
Leus RUB = Russian Rubles SGD = Singapore Dollars ZAR = South African Rand SEK =
Swedish Krona CHF = Swiss Francs THB = Thai Baht TRY = Turkish Lira GBP = UK Pounds
USD = US Dollars

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/currency-code` directory, or
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

Shortcodes work out-of-the-box and widgets require adding to your sidebar before
being available.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Currency Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Currency Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/currency-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/currency-code/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/currency-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/currency-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/currency-code/)。

## 更新日志

0.1 – 20th October 2016
 – First version of the plugin

## 额外信息

 *  版本 **0.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [English (US)](https://wordpress.org/plugins/currency-code/)
 * 标签
 * [conversion](https://cn.wordpress.org/plugins/tags/conversion/)[currency](https://cn.wordpress.org/plugins/tags/currency/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/currency-code/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/currency-code/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/currency-code/)