| 开发者 | howmuchworks |
|---|---|
| 更新时间 | 2026年12月1日 16:51 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[howmuchworks_calculator type="tile"]
Types: tile, roofing, fence, pool, fish-tank. Optional attributes: units="metric", accent="#1e5fa8", heading="Tile estimate", intro="Enter your room size.", credit="yes".
Privacy
All calculations run in the visitor's browser. The plugin makes no requests to any other server, loads no external fonts or scripts, sets no cookies, adds no tracking or analytics, and stores nothing in your database. What visitors type stays in their browser.
Disclaimer
Each calculator shows a short note under the result: estimates are for planning only, are not professional advice and carry no guarantee of accuracy. Check quantities with your supplier or installer before ordering.
The calculators are the same ones that run on howmuchworks.com. More free calculators at howmuchworks.com.
Source code
The plugin ships with its uncompressed source in the src folder and its tests in the tests folder. The files in build are generated from src with @wordpress/scripts:
npm installnpm run build (writes build/)npm test (runs the calculation tests with the Node.js test runner)howmuchworks-calculators folder to /wp-content/plugins/ and activate it on the Plugins screen.[howmuchworks_calculator type="roofing" units="imperial"].No. The calculations run in the visitor's browser with JavaScript that is part of the plugin. There are no requests to howmuchworks.com or to any other server, no cookies and no analytics.
No. Every calculator and every setting is free.
They are estimates for planning. Each calculator explains its assumptions under the result (for example, a roof with one pitch on every plane, or one straight fence line). Real jobs vary: check the quantities with your supplier or installer before ordering.
Yes. Add as many blocks or shortcodes as you like, including several of the same type with different settings.
Yes. Use the shortcode with the calculator type, for example [howmuchworks_calculator type="tile"], in the classic editor, a classic widget or a page builder's shortcode element. The types and the other options are listed in the description above.
The calculators use your theme's font and text colour. You can set an accent colour for the button and the result box. Everything is styled under the .hmw-calc class if you want to adjust it with custom CSS.
No. The calculations run in the browser, so visitors with JavaScript turned off see a short note instead.
Yes. All text, including the calculator labels and results, is ready for translation with the text domain howmuchworks-calculators. Numbers are formatted in your site language.
[howmuchworks_calculator] shortcode.