Linux 软件免费装
Banner图

Borderless Currency Calculator

开发者 mihirdev21
更新时间 2026年9月28日 18:23
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode converter calculator currency exchange rate

下载

1.0.0

详情介绍:

Borderless Currency Calculator adds a configurable currency converter to WordPress sites with the [bccalc_currency_converter] shortcode. The exchange-rate service is provided by the Fawaz Ahmed Exchange API project: https://github.com/fawazahmed0/exchange-api

安装:

  1. Upload the borderless-currency-calculator folder to /wp-content/plugins/.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Visit Settings > Borderless Currency Calculator to choose currencies and styling.
  4. Add the [bccalc_currency_converter] shortcode to any page or post.

常见问题:

Does this require an API key?

No. The Fawaz Ahmed Currency API does not require an API key for the exchange-rate data used by this plugin.

How are exchange rates fetched?

When a visitor clicks "Convert", the plugin sends a server-side request (via WordPress's wp_remote_get) from your web server to the Fawaz Ahmed Exchange API. Only the base currency code (e.g. "usd") is included in the URL. No visitor personal data, IP addresses, or identifying information are sent by the plugin. The exchange-rate response is then cached using WordPress transients for up to one hour to reduce repeat requests.

What happens if the currency API is unavailable?

The plugin tries the fallback endpoint. If both endpoints fail, the converter displays an error instead of breaking the page. Previously cached rates remain available until their cache expires.

How are numbers formatted?

Converted amounts use two decimal places and comma thousands separators, for example 1,000.00. The exchange-rate line uses four decimal places, for example 1 GBP = 1.3383 USD.

更新日志:

1.0.0