跳到内容

Craft Quantities Calculators

v1.1.0

craftquantities · 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日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

截图

The block in the editor: pick any of the 1,181 calculators, then set units, language, theme and height.
The block in the editor: pick any of the 1,181 calculators, then set units, language, theme and height.
A calculator on a published page, worked out as the reader types, with every result line.
A calculator on a published page, worked out as the reader types, with every result line.
The same calculator on a phone.
The same calculator on a phone.

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 example concrete-calculator).
  • units: imperial, metric, or auto (default: the reader’s own setting).
  • lang: en, es, fr, pt, or auto (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, or auto (default: follows the reader’s system setting).
  • height: auto (default: fits the calculator) or a number of pixels between 200 and 6000.
  • heading: 0 hides the calculator’s own heading inside the frame, for a page whose heading already names it.
  • credit: follow (default) or nofollow.

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 the strict-origin-when-cross-origin policy). 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) and https://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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums