| 开发者 | falselight |
|---|---|
| 更新时间 | 2026年5月20日 05:20 |
| 捐献地址: | 去捐款 |
| PHP版本: | 5.3 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
WP_Widget.
On modern WordPress installations with the block-based widget screen, install and activate Classic Widgets to manage the widget in Appearance > Widgets.
Shortcodes work without Classic Widgets.
🧩 Shortcode examples
Market widget example:
[erw_exchange_rates_widget lg="en" tz="0" fm="EUR" to="USD,GBP,AUD,CNY,JPY,RUB" st="info" cd="0" am="100" size_width="100%"][/erw_exchange_rates_widget]
Travel widget example:
[erw_exchange_rates_widget lg="en" tz="0" fm="USD" to="EUR,JPY,GBP" st="success" cd="1" am="100" size_width="100%"][/erw_exchange_rates_widget]
🔧 Shortcode attributes
lg - language. Supported values: en, ru, it, fr, es, de, cn, pt, ja, id, hi.tz - time zone offset.fm - base currency code, for example EUR.to - comma-separated target currency codes, for example USD,GBP,AUD,CNY,JPY,RUB.st - theme. Supported values: primary, info, danger, warning, default, success.cd - display mode. Use 1 to show currency codes only or 0 to show currency names.am - amount shown by the rates widget, for example 100.size_width - widget width, for example 100%, 240px, or 300px.exchange-rates-widget folder to /wp-content/plugins/.Use a shortcode or paste it into a Shortcode block:
[erw_exchange_rates_widget lg="en" tz="0" fm="EUR" to="USD,GBP,AUD,CNY,JPY,RUB" st="info" cd="0" am="100" size_width="100%"][/erw_exchange_rates_widget]
Yes. Add "Exchange Rates Widget" under Appearance > Widgets. If your WordPress site uses the block-based widget screen, install and activate Classic Widgets first.
No. The widget is embedded directly on your page, post, sidebar, or footer.
No. Exchange-rate lookup and display are handled by the embedded CurrencyRate.Today service, so you do not need an API key or local rate database.
Yes. You can choose the base currency, target currencies, language, time zone, color theme, amount, and display mode.
The main attributes are lg, tz, fm, to, st, cd, am, and size_width.
See the shortcode attributes section above for the full list.
Yes. The plugin embeds an iframe from CurrencyRate.Today.
When a page containing the widget is viewed, the visitor's browser requests https://currencyrate.today/load-exchangerates.
The request includes display settings such as base currency, target currencies, language, theme, time zone, display mode, amount, and a WordPress plugin marker.
These values come from the shortcode or widget settings.
The plugin does not send WordPress usernames, passwords, admin settings, or private site data to the service.
Service provider: CurrencyRate.Today
No. The plugin currently supports shortcodes and classic widgets. In the block editor, use a Shortcode block.