Skip to content

2.0.0: gold, coins, metals and charts

Choose a tag to compare

@netarz netarz released this 21 Oct 06:24
· 4 commits to main since this release

NetArz Currency & Gold Rates 2.0.0 (slug netarz-fx). Download netarz-fx-2.0.0.zip below and upload it under Plugins > Add New > Upload Plugin.

New

  • Gold, silver and coins: [netarz_gold], [netarz_coins], [netarz_metals], [netarz_market symbols="XAU,GOLD18,COIN_EMAMI,USD"] and the "NetArz gold and coins" block. The gold and silver ounce come from gold-api.com through NetArz.
  • Computed values are always labelled. 18k gold per gram and per mesghal and the Emami, Bahar Azadi, half, quarter and gram coins are a NetArz computed value from the global ounce and the NetArz dollar rate. They are not the Tehran market price (no coin premium, no making charges). Every such row has a "Computed value" badge and every table and chart prints that note.
  • Charts: [netarz_chart symbol="XAU" range="30d"] and the "NetArz price chart" block, drawn on your server as SVG with no chart library (needs a free key; the free plan covers 30 days).
  • Tabbed classic widget: "NetArz currency and gold rates" with currency, gold and coin tabs.
  • No key needed to start: without a key the plugin reads the keyless public board.
  • Asks before it connects: on a new install nothing is requested from netarz.ir until you turn on "Allow this site to fetch rates from netarz.ir" in Settings > NetArz FX. Sites updating from 1.x with a saved key stay connected.
  • Plain-text source line under every market table and chart; last good numbers with "Last updated" when NetArz cannot be reached.

Kept

All 1.x shortcodes ([netarz_rate], [netarz_rates], [netarz_convert]), blocks, the currency widget, browser mode and the WooCommerce "about ... Toman" line.

Checks

Plugin Check 2.1.0 on WordPress 7.1.3: 0 errors (1 warning: load_plugin_textdomain(), kept for the bundled Persian translation). WordPress Coding Standards and PHPCompatibilityWP (PHP 7.4+): clean. php -l on PHP 7.4 and 8.4.

Full list: CHANGELOG.md