
Craft Quantities Calculators
v1.1.0craftquantities · 2026年11月26日 上架
Embed free construction calculators (concrete, framing, roofing, tile and more) from Craft Quantities with a block or a shortcode.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 0
- 最近更新
- 2026年11月26日
贡献者
截图
Craft Quantities publishes free construction quantity calculators, each with its formula, its sources and worked examples. This plugin puts any of them in a post or a page:
- A block, “Craft Quantities Calculator”, with a searchable list of every calculator, and settings for units, language, theme and height.
-
A shortcode for the classic editor and widgets:
[craftquantities calc=”concrete-calculator” units=”imperial” lang=”en” theme=”auto” height=”auto”]
The calculator runs inside an iframe served from craftquantities.com, the same frame the site offers on its embed page. With height="auto" the frame grows and shrinks to fit the calculator.
What the plugin does not do
- No tracking, no analytics, no cookies, no ads — in the plugin, and in the embedded frame (the frame’s own security policy forbids third-party scripts and outbound requests).
- No account and no API key.
- It does not size or certify anything. The calculators estimate quantities; structural sizing belongs to your engineer and your building department.
- No prices. The calculators work out quantities, never costs.
Credit
The calculators and their content are published under CC BY 4.0, which asks for credit. Every embed shows a line under the frame, “Calculator by Craft Quantities”, linking to the calculator’s full page, where its sources and method are. The link is a normal link by default; each block (or credit="nofollow" on a shortcode) can make it rel="nofollow". The line itself is always shown.
Shortcode options
calc(required): the calculator’s slug, the last part of its address on craftquantities.com (for exampleconcrete-calculator).units:imperial,metric, orauto(default: the reader’s own setting).lang:en,es,fr,pt, orauto(default: the site’s language). Where the calculator’s Spanish, French or Portuguese page is published on craftquantities.com, the frame shows the calculator in that language and the credit links to that page. Translated pages are published a group at a time, so until a calculator’s page is out, the frame shows the English calculator with the credit line in your language; it switches by itself once the page is published.theme:light,dark, orauto(default: follows the reader’s system setting).height:auto(default: fits the calculator) or a number of pixels between 200 and 6000.heading:0hides the calculator’s own heading inside the frame, for a page whose heading already names it.credit:follow(default) ornofollow.
External services
This plugin connects to Craft Quantities (https://craftquantities.com), the site that publishes the calculators. It is needed for the plugin to do anything at all.
- The embedded calculator. Every page that shows a calculator loads an iframe from
https://craftquantities.com/embed/. The reader’s browser requests the calculator page and its scripts and styles from craftquantities.com, which receives the usual request data (IP address, browser user agent, and the address of the page as the referrer, under thestrict-origin-when-cross-originpolicy). The inputs typed into the calculator are worked out in the reader’s browser and are not sent anywhere. - The calculator list. When an editor opens the block’s calculator picker, your WordPress server requests
https://craftquantities.com/api/v1/calculators.json(the public list of calculators: slug, title, category) andhttps://craftquantities.com/api/v1/embed-languages.json(which calculators are published in Spanish, French or Portuguese) and keeps them for a week. No data about your site or its users is sent beyond the request itself. Pages shown to visitors never make this request; if the list cannot be fetched, the plugin uses the copy bundled with it.
Craft Quantities: terms of use, privacy policy.


