Title: Onu Exchange Rates and Converter for BNR
Author: constantinonu
Published: <strong>2026 年 7 月 10 日</strong>
Last modified: 2026 年 10 月 9 日

---

搜索插件

![](https://ps.w.org/curs-bnr-convertor-valutar/assets/banner-772x250.png?rev=3603831)

![](https://ps.w.org/curs-bnr-convertor-valutar/assets/icon-256x256.png?rev=3603831)

# Onu Exchange Rates and Converter for BNR

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

[下载](https://downloads.wordpress.org/plugin/curs-bnr-convertor-valutar.1.0.5.zip)

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

 [支持](https://wordpress.org/support/plugin/curs-bnr-convertor-valutar/)

## 描述

**Onu Exchange Rates and Converter for BNR** brings the official daily exchange 
rates published by the National Bank of Romania (BNR) directly to your WordPress
site. It supports automatic scheduled sync (WP Cron), historical rate lookups, interactive
currency conversion forms, classic widgets, a native Gutenberg block, and an Elementor
widget.

This plugin performs external HTTP requests to the official BNR XML feed once a 
day to download current exchange rates. No personal data is sent or collected.

#### Features

 * Automatic daily fetch of BNR exchange rates (WordPress Cron)
 * Complete historical exchange rate entries saved in a custom database table
 * Interactive currency converter calculator widget (RON is the pivot currency)
 * `[onuexra_curs]` shortcode for displaying selected rates
 * `[onuexra_convertor]` shortcode for rendering the conversion calculator
 * Classic sidebar and footer widgets
 * Native Gutenberg block with live preview in the editor
 * Elementor page builder widget integration (loaded conditionally)
 * Daily rate trend variations (increases/decreases marked by color-coded badges)

#### Gutenberg Block Source Code

This plugin contains compiled production Javascript assets inside the `build/` directory
for Gutenberg blocks. The original, uncompiled, and fully human-readable source 
code is bundled inside the plugin package in the `blocks/curs-valutar/src/` and `
blocks/convertor-valutar/src/` directories.
 To build or modify the block assets
yourself, you can run: 1. Install dependencies: `npm install` 2. Build the assets:`
npm run build`

#### External Services

This plugin connects to the BNR (National Bank of Romania) XML feed to obtain official
daily exchange rates. The data is retrieved once per day via HTTP request to:
 –`
https://www.bnr.ro/nbrfxrates.xml` (daily rates) – `https://bnr.ro/files/xml/years/
nbrfxrates%d.xml` (historical annual rates)

No personal data, user information, or site data is transmitted to this external
service. Only the exchange rate XML files are downloaded.

This service is provided by Banca Națională a României (BNR):
 – Website: https://
www.bnr.ro/ – Terms of Service: https://www.bnr.ro/Terms-and-conditions-12110.aspx–
Privacy Policy: https://www.bnr.ro/Privacy-policy-12496.aspx

## 屏幕截图

[⌊Preview în pagină – shortcode afișat pe o pagină⌉⌊Preview în pagină – shortcode
afișat pe o pagină⌉[

Preview în pagină – shortcode afișat pe o pagină

[⌊Panoul de setări administrative⌉⌊Panoul de setări administrative⌉[

Panoul de setări administrative

[⌊Tabel cu ratele valutare și sincronizare manuală⌉⌊Tabel cu ratele valutare și 
sincronizare manuală⌉[

Tabel cu ratele valutare și sincronizare manuală

[⌊Gutenberg block preview în editor⌉⌊Gutenberg block preview în editor⌉[

Gutenberg block preview în editor

## 区块

该插件提供了 2 个区块.

 *   BNR Exchange Rates Display BNR exchange rates on your page as a table, cards,
   or inline.
 *   BNR Currency Converter Interactive currency conversion form based on BNR exchange
   rates.

## 安装

 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install directly
    from Plugins -> Add New.
 2. Activate the plugin.
 3. Go to Settings -> Onu Exchange Rates to select active currencies and schedule the
    daily update time.
 4. Use the shortcode `[onuexra_curs]`, Gutenberg block, Elementor widget, or Classic
    widget to display the rates.

## 常见问题

### Where does the data come from?

Directly from the official BNR XML feed (bnr.ro), without intermediaries.

### How often is the rate updated?

Once a day, automatically, at your configured settings hour (defaults to 13:15, 
Romanian time, which is when BNR publishes the rates).

### Does it work without Elementor?

Yes. The Elementor widget is loaded only if the Elementor plugin is active. Shortcodes,
Gutenberg blocks, and classic widgets work independently.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Onu Exchange Rates and Converter for BNR」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Onu Exchange Rates and Converter for BNR」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/curs-bnr-convertor-valutar)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.5

 * Fix: Actualizat URL-urile XML ale BNR de la `www.bnr.ro` la noul subdomeniu `
   curs.bnr.ro`, în conformitate cu anunțul BNR din 6 august 2026. Fără această 
   actualizare, sincronizarea zilnică eșua cu eroarea „BNR server did not return
   XML”.

#### 1.0.4

 * Fix: Adăugat validare a răspunsului HTTP în fetch_url() pentru a detecta paginile
   HTML returnate de serverul BNR (mentenanță, WAF, CDN) cu status 200. Mesajele
   de eroare din log-uri sunt acum descriptive și acționabile în loc de „StartTag:
   invalid element name”.

#### 1.0.3

 * Adăugat opțiunea de a comuta între tema Light și tema Dark (atât global din setări,
   cât și local per shortcode / bloc).
 * Adăugat 3 stiluri de densitate pentru layout (Compact, Normal și Spațios).
 * Integrat controale de selectare a temei și a densității în panourile laterale
   pentru ambele blocuri Gutenberg.

#### 1.0.2

 * Adăugat branding vizual oficial (logo, iconițe și bannere personalizate pentru
   WordPress.org).
 * Optimizat structura pachetului prin mutarea capturilor de ecran în directorul
   de active externe (reducând considerabil dimensiunea fișierului ZIP).

#### 1.0.1

 * Resolved manual review feedback: renamed prefixes to prevent conflicts, added
   uncompiled block source to packaged ZIP, and enhanced option sanitization.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/curs-bnr-convertor-valutar/)
 * 标签
 * [bnr](https://cn.wordpress.org/plugins/tags/bnr/)[currency converter](https://cn.wordpress.org/plugins/tags/currency-converter/)
   [elementor](https://cn.wordpress.org/plugins/tags/elementor/)[exchange rates](https://cn.wordpress.org/plugins/tags/exchange-rates/)
   [Gutenberg block](https://cn.wordpress.org/plugins/tags/gutenberg-block/)
 *  [高级视图](https://cn.wordpress.org/plugins/curs-bnr-convertor-valutar/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/curs-bnr-convertor-valutar/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/curs-bnr-convertor-valutar/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/curs-bnr-convertor-valutar/)

## 捐助

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

 [ 捐助此插件 ](https://buymeacoffee.com/constantinonu)