Linux 软件免费装
Banner图

HUP - Indicadores Económicos (Chile)

开发者 hazmeunapagina
更新时间 2026年7月22日 06:03
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

chile currency exchange rate economy uf

下载

1.0.0 1.0.1

详情介绍:

Data is fetched in real time from the public mindicador.cl API — a free service that exposes official economic indicators for Chile (sourced from the Central Bank and other entities). No registration or API key is required. HUP - Indicadores Económicos (Chile) queries the mindicador.cl API automatically and outputs the values through the [hupind_indicadores] shortcode, ready to use in headers, footers, sidebars, Bricks Builder, Elementor and any area of your site. This project is independent and is not affiliated with any government entity. Data is obtained from the public mindicador.cl API (https://mindicador.cl). The plugin only receives data; it never sends any information to the service. Main features: Example shortcode: [hupind_indicadores show="uf,dolar,euro" layout="horizontal" show_variation="true" show_date="true"] BEM classes available for styling:

安装:

  1. Upload the hup-indicadores-economicos-chile folder to the /wp-content/plugins/ directory.
  2. Activate the plugin from the Plugins menu in WordPress.
  3. Go to Tools → HUP Indicadores in the WordPress admin.
  4. Enable the indicators you want to show and adjust the decimals.
  5. Copy the automatically generated shortcode and paste it wherever you need it.

屏幕截图:

  • Shortcode options with live builder, date format and BEM class reference in an accordion.
  • Cache screen with last fetch statistics and configurable duration.

升级注意事项:

1.0.1 Lowers the minimum PHP requirement to 7.4. No functional changes. 1.0.0 First public release.

常见问题:

Do I need WooCommerce or another plugin to use this?

No. The plugin is fully independent. It works without WooCommerce or any other external plugin.

Is the data in real time?

Data is fetched from the public mindicador.cl API. The refresh frequency depends on the configured cache duration (1 hour by default). Indicators such as the UF are updated daily.

Can I style the shortcode?

Yes. The plugin does not load any CSS on the frontend on purpose. Use the BEM classes documented in the "CSS classes" accordion of the admin screen to apply your styles from Bricks Builder, Elementor or your own stylesheet. The change colors (green/red) can be changed by defining the CSS variables --hupind-color-up and --hupind-color-down on .hupind-indicadores.

What happens if the mindicador.cl API does not respond?

The plugin keeps a permanent fallback transient with the last successful value. Once at least one request has succeeded, that value is served automatically if the API later fails, so the frontend never goes blank. Only on a brand-new install, before the first successful request and while the API is unreachable, is there no value to show; in that case the shortcode outputs a short notice that you can customize with the error_text attribute (set error_text="" to output nothing).

Can I show only some indicators?

Yes, in two ways: enabling/disabling them from the admin screen, or using the show parameter directly in the shortcode: [hupind_indicadores show="uf,dolar,euro"].

How many decimals are shown?

Configurable per indicator from the admin screen (0 to 4 decimals).

更新日志:

1.0.1 1.0.0