| 开发者 | metalfreek |
|---|---|
| 更新时间 | 2026年10月30日 15:47 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
area * price_per_m2 + if(rush, 50, 0)
+ - * / % ^ and brackets.== != < > <= >= && || !if, min, max, round, floor, ceil, abs, sqrt, clamp.$ or / month. Numbers use your site language's decimal and thousands separators.[yangra_calculator id="123"] works in classic content, widgets and page builders. The All Calculators screen shows each calculator's shortcode, ready to copy.build/ are compiled from the human-readable source in assets/src/ using @wordpress/scripts (npm run build).
The plugin includes the Freemius WordPress SDK (version 2.13.4, GPLv3) in vendor/freemius/wordpress-sdk/, which handles opt-in diagnostics and Pro licensing. Its source is available in that repository.
yangra-calculator folder to /wp-content/plugins/ and activate it on the Plugins screen.Only if you agree. On activation, Yangra Calculator asks whether you want to share basic, non-sensitive diagnostic data with us through Freemius, which also handles Pro licences and updates. Click "Skip" and nothing is sent. You can opt in or out later from the plugin's Account page.
No. Formulas look like spreadsheet formulas: quantity * unit_price. The builder checks every formula as you write it and explains anything it cannot understand.
Use a dropdown, and give each option the number your formula needs. For example, "Standard" = 0 and "Express" = 25, then add delivery to your total. For an optional add-on, use a checkbox: if(gift_wrap, 5, 0).
Yes. A result can use every input and any result listed above it. Tick "Hide from visitors" on in-between results so visitors only see the ones that matter.
That depends on each calculator's Calculation setting. "In the visitor's browser" (the default) updates results instantly, but the formulas are part of the page. "On the server" keeps formulas and hidden results private: the page sends the values to your site and shows the results it sends back, after a short pause.
That result shows a dash instead of a number, and the other results still work. The builder warns you about formulas like this while you edit. In server mode, visitors see a general message instead of the exact reason, so nothing about your formulas is revealed.
Each result has a prefix, a suffix and a number of decimal places. Use $ as a prefix and 2 decimals for prices, or % as a suffix for rates. Decimal and thousands separators follow your site's language.
Yes. Calculators use plain HTML and inherit your theme's fonts and colours. Use the block in the block editor, or the shortcode in any page builder, widget or classic content.
No. Values are used to compute the results and then discarded. In server mode they are sent to your own site only, never to a third party.
Yes. Each site has its own calculators and settings.
Deactivating the plugin keeps everything. Deleting it from the Plugins screen permanently removes all calculators, their revisions and the plugin's settings, on every site of a multisite network. Pages that used the Calculator block show nothing in its place; any [yangra_calculator] shortcodes are left as plain text.
[yangra_calculator] shortcode.