Title: Currencyr
Author: Firman Wandayandi
Published: <strong>2012 年 12 月 17 日</strong>
Last modified: 2013 年 1 月 4 日

---

搜索插件

![](https://ps.w.org/currencyr/assets/banner-772x250.jpg?rev=644662)

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

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

# Currencyr

 作者：[Firman Wandayandi](https://profiles.wordpress.org/firmanw/)

[下载](https://downloads.wordpress.org/plugin/currencyr.zip)

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

 [支持](https://wordpress.org/support/plugin/currencyr/)

## 描述

Instead of traditional “calculator” looks converter, Currencyr take the advance 
of “tooltip” and sit right at the amount to allow user convert it. Support various
exchange rates provider API running as WP Cron task and able to auto-determinate
local currency of visitor. Currencyr also offers currency converter widget, shortcode
and function.

See it in action at http://demo.firmanw.com/wp/currencyr.

_Note: This plugin requires PHP 5.3.0 or later, do not ever try to install if you
running the older version._

#### Features

 * Inline converter using [Currencyr for jQuery](http://firmanw.github.com/jquery-currencyr)
 * Various exchange rates providers – Yahoo!, Google, Open Exchange Rates, European
   Central Bank and FoxRates
 * Support database cache driven for fast response
 * WP Cron task scheduler enabled
 * Shortcode quick conversion support
 * Currency table and converter widget
 * Function for theme developer
 * Auto-determinate local currency via IP detection using [IP2C](http://firestats.cc/wiki/ip2c)
 * Support integration with various ecommerce plugins – WooCommerce, WP-eCommerce,
   Shopp and Easy Digital Downloads
 * Translation support

#### Shortcode

To enable the shortcode simply use [currencyr] and use the following syntax:

    ```
    [currencyr amount=$amount <from=$code> to=$code<|$code>]
    ```

 * **amount** – The number that you wish to convert.
 * **to** – The currency code. Use “|” as separator for multiple conversion.
 * **from** (optional) – The currency code. If omitted the Base Currency from setting
   will be use.

Examples:
 [currencyr amount=99.99 to=gbp]

    ```
    [currencyr amount=99.99 from=aud to=gbp]

    [currencyr amount=99.99 to=gbp|eur|cad]
    ```

#### Function Call

The conversion feature is available to call within templates or codes using either
currencyr_exchange() or the_currencyr_exchange(). Both functions share the same 
arguments, the diferrent is the_currencyr_exchange() is only echoes the result automatically.
You can call the functions as WordPress style or PHP with the following arguments:

 * **amount** – The number that you wish to convert.
 * **to** – The currency code.
 * **from** (optional) – The currency code. If omitted the Base Currency from setting
   will be use.

The code above is similar to:

    ```
    <?php echo currencyr_exchange( array( 'amount' => 99.99, 'to' => 'cad' ) ); ?>
    ```

Also similar to:

    ```
    <?php echo currencyr_exchange( 99.99, 'cad' ); ?>
    ```

#### Roadmap

 * Add exchange rates table page
 * Add custom currency support

#### Feedback

If you have any feedback, tweet [@firmanw](http://twitter.com/firmanw) for fast 
response, or head over to the [support forum](https://wordpress.org/support/plugin/currencyr).

## 屏幕截图

[⌊Converter tooltip⌉⌊Converter tooltip⌉[

Converter tooltip

[⌊The settings page⌉⌊The settings page⌉[

The settings page

[⌊The widget⌉⌊The widget⌉[

The widget

## 安装

 1. Install Currencyr either via the WordPress.org plugin directory, or by uploading
    the files to your server
 2. Activate the Currencyr through the Plugins menu in WordPress
 3. Go to Currencyr menu to get started
 4. You need to update rates to populate cache immediately, or let WP Cron do it

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Firman Wandayandi ](https://profiles.wordpress.org/firmanw/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4

 * Fixed wpdb error while retrieving WP e-Commerce configuration.

#### 1.0.3

 * Fixed menu and page icon for HiDPI screen.
 * Fixed some URLs

#### 1.0.2

 * Added functions to able to use conversion within templates/codes
 * Added handler when conversion return no result

#### 1.0.1

 * Fixed settings page capability typo
 * Fixed widget number format
 * Fixed plugin URI

#### 1.0

Initial release

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**13 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/currencyr/)
 * 标签
 * [conversion](https://cn.wordpress.org/plugins/tags/conversion/)[currency](https://cn.wordpress.org/plugins/tags/currency/)
   [ecommerce](https://cn.wordpress.org/plugins/tags/ecommerce/)[money](https://cn.wordpress.org/plugins/tags/money/)
   [shop](https://cn.wordpress.org/plugins/tags/shop/)
 *  [高级视图](https://cn.wordpress.org/plugins/currencyr/advanced/)

## 评级

 4.1 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/currencyr/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/currencyr/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/currencyr/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/currencyr/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/currencyr/reviews/?filter=1)

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

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

## 贡献者

 *   [ Firman Wandayandi ](https://profiles.wordpress.org/firmanw/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://firmanw.com/donate)