WordPress plugin intelligence profile

Tipo de Cambio Costa Rica

Shows the US dollar exchange rate (buy and sell) in Costa Rica, from the public API of Costa Rica's Ministry of Finance.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version2.0.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.0 · PHP 7.4
Directory statusactive
Last directory update31 Oct 20262d ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Tipo de Cambio Costa Rica version 2.0.0 as active, updated 2d ago and tested up to WordPress 7.1.

Overview

About this plugin

This plugin shows the current reference exchange rate of the US dollar in Costa Rican colones (buy and sell rates) and converts amounts between colones and dollars. You can use it in any post or page with shortcodes, or in your theme templates with PHP functions.

The rates come from the public API of Costa Rica’s Ministry of Finance (Ministerio de Hacienda), which publishes the reference exchange rate of the Central Bank of Costa Rica (BCCR). No API key or token is needed. See “External services” below.

The rate is updated automatically every 4 hours in the background (WP-Cron). Your pages never wait for the API: they show the last rate that was obtained successfully.

Shortcodes

Buy exchange rate (compra): [WPTCR_TIPO_CAMBIO_COMPRA]

Sell exchange rate (venta): [WPTCR_TIPO_CAMBIO_VENTA]

Colones to dollars (uses the sell rate): [WPTCR_CONVERTIR_COLONES_DOLARES monto=20000]

Dollars to colones (uses the buy rate): [WPTCR_CONVERTIR_DOLARES_COLONES monto=200]

If monto is omitted, 100 is used. If the rate is not available or monto is not a valid amount, the shortcodes print nothing.

PHP functions for your theme

To get the exchange rate:

>

To convert a value:

>

wptcr_tipo_cambio() returns a number. The conversion functions return a string with two decimals. All of them return `0` if the rate is not available.

External services

This plugin connects to the public API of the Ministerio de Hacienda (Ministry of Finance) of Costa Rica to get the reference exchange rate of the US dollar (buy and sell rates). The plugin needs this service to show the exchange rate.

  • Service: API of the Ministerio de Hacienda, endpoint https://api.hacienda.go.cr/indicadores/tc/dolar.
  • When: every 4 hours from WP-Cron, and once when a page needs the rate and no rate has been stored yet (for example, right after installing the plugin).
  • Data sent: a plain HTTP GET request with no parameters. It does not include personal data, cookies or any content or URL of your site. The request identifies itself with the User-Agent TipoDeCambioCR/<plugin version> (+https://wordpress.org/plugins/tipo-de-cambio-costa-rica/). As with any HTTP request, the API receives the IP address of your server.
  • Usage policies and limits of the API: https://api.hacienda.go.cr/docs/
  • Privacy policy of the Ministerio de Hacienda (Directriz DM-009-2021): https://www.hacienda.go.cr/docs/PoliticadePrivacidadDirectrizN.DM-009-2021.pdf
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • costa rica
  • tipo de cambio
  • colones
  • dolares
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.0 · PHP 7.4
Update activity31 Oct 20262d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.0.02.0.0
WordPress compatibility4.7.357.1.4
WordPress requirement3.0.16.0
PHP requirementNot listed7.4
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.