{"id":415818,"date":"2026-12-02T07:14:22","date_gmt":"2026-12-02T07:14:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/captainbrew-homebrew-calculators\/"},"modified":"2026-12-02T11:26:43","modified_gmt":"2026-12-02T11:26:43","slug":"captainbrew","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/captainbrew\/","author":23614287,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.5","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"CaptainBrew Homebrew Calculators","header_author":"CaptainBrew","header_description":"Add CaptainBrew's homebrewing calculators, charts and recipe builder to your shop with a shortcode or block, and let customers send recipe ingredients to the WooCommerce cart.","last_updated":"2026-12-02 11:26:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/captainbrew.com\/embed-calculators","header_author_uri":"https:\/\/captainbrew.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":59,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"captainbrewcalculators","date":"2026-12-02 07:14:00","revision":3839239},"1.0.1":{"tag":"1.0.1","author":"captainbrewcalculators","date":"2026-12-02 11:26:43","revision":3839876}},"upgrade_notice":{"1.0.1":"<p>Adds the Beer Calories Chart widget.<\/p>","1.0.0":"<p>First release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3839239,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3839239,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3839239,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3839239,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"captainbrew\/widget":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"captainbrew\/widget","title":"CaptainBrew Widget","category":"embed","icon":"calculator","description":"A CaptainBrew brewing calculator, chart or the recipe builder.","keywords":["brewing","calculator","homebrew","recipe","abv"],"textdomain":"captainbrew","attributes":{"widget":{"type":"string","default":"recipe-builder"},"height":{"type":"number"},"showTitle":{"type":"string","default":"default"}},"supports":{"html":false,"align":["wide","full"]},"editorScript":"file:.\/index.js"}},"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3839239,"resolution":"1","location":"assets","locale":"","width":1280,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3839239,"resolution":"2","location":"assets","locale":"","width":1280,"height":780},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3839239,"resolution":"3","location":"assets","locale":"","width":1280,"height":900},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3839239,"resolution":"4","location":"assets","locale":"","width":1280,"height":900},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3839239,"resolution":"5","location":"assets","locale":"","width":1280,"height":900}},"screenshots":{"1":"The ABV calculator on a shop page, in the shop's colors.","2":"The recipe builder with the shop's own products: gravity, bitterness, color and alcohol update as you go, with \"Add to cart\" in the action row.","3":"The recipe's ingredients in the WooCommerce cart.","4":"Settings &gt; CaptainBrew: the Features tab, next to Settings (connection status), Product Catalog and Shortcodes.","5":"Adding a widget with the CaptainBrew Widget block."}},"plugin_section":[],"plugin_tags":[5632,716,11598,6342,286],"plugin_category":[45,59],"plugin_contributors":[297056],"plugin_business_model":[],"class_list":["post-415818","plugin","type-plugin","status-publish","hentry","plugin_tags-beer","plugin_tags-calculator","plugin_tags-homebrew","plugin_tags-recipe","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_category-utilities-and-tools","plugin_contributors-captainbrewcalculators","plugin_committers-captainbrewcalculators"],"banners":{"banner":"https:\/\/ps.w.org\/captainbrew\/assets\/banner-772x250.png?rev=3839239","banner_2x":"https:\/\/ps.w.org\/captainbrew\/assets\/banner-1544x500.png?rev=3839239","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/captainbrew\/assets\/icon-128x128.png?rev=3839239","icon_2x":"https:\/\/ps.w.org\/captainbrew\/assets\/icon-256x256.png?rev=3839239","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/captainbrew\/assets\/screenshot-1.png?rev=3839239","caption":"The ABV calculator on a shop page, in the shop's colors."},{"src":"https:\/\/ps.w.org\/captainbrew\/assets\/screenshot-2.png?rev=3839239","caption":"The recipe builder with the shop's own products: gravity, bitterness, color and alcohol update as you go, with \"Add to cart\" in the action row."},{"src":"https:\/\/ps.w.org\/captainbrew\/assets\/screenshot-3.png?rev=3839239","caption":"The recipe's ingredients in the WooCommerce cart."},{"src":"https:\/\/ps.w.org\/captainbrew\/assets\/screenshot-4.png?rev=3839239","caption":"Settings &gt; CaptainBrew: the Features tab, next to Settings (connection status), Product Catalog and Shortcodes."},{"src":"https:\/\/ps.w.org\/captainbrew\/assets\/screenshot-5.png?rev=3839239","caption":"Adding a widget with the CaptainBrew Widget block."}],"raw_content":"<!--section=description-->\n<p>CaptainBrew Homebrew Calculators adds homebrewing tools from <a href=\"https:\/\/captainbrew.com\/\">CaptainBrew<\/a> to your WordPress or WooCommerce shop. Add them with a block or a shortcode.<\/p>\n\n<p>The widgets need a CaptainBrew business account registered for your site's domain. The first month is free; see <a href=\"https:\/\/captainbrew.com\/embed-calculators\">pricing<\/a>.<\/p>\n\n<p><strong>39 widgets:<\/strong><\/p>\n\n<ul>\n<li>Recipe builder<\/li>\n<li>ABV, IBU, priming sugar, keg carbonation, sparge water, mash, boil-off, hydrometer and refractometer calculators<\/li>\n<li>Brewhouse efficiency, wort dilution and chaptalization calculators<\/li>\n<li>Gravity converter (SG, Plato, Brix), mead calculator and recipe scaling calculator<\/li>\n<li>Water chemistry, yeast pitching rate, washed yeast, viability and DME starter calculators<\/li>\n<li>Unit, color and LME\/DME conversion<\/li>\n<li>Beer label generator: customers design and print bottle labels for their homebrew<\/li>\n<li>Reference charts: carbonation (CO2 volumes by style and keg PSI), hop substitutions, hop alpha acids, yeast strains (Wyeast, White Labs), malt yields, grains, beer styles, food pairings, glassware, off-flavours, beer calories (popular beers and styles)<\/li>\n<\/ul>\n\n<p><strong>Made for homebrew shops:<\/strong><\/p>\n\n<ul>\n<li>Your own product catalog in the recipe builder, so customers build recipes from what you sell.<\/li>\n<li>Your brand colors on every widget.<\/li>\n<li>Whitelabel mode: no CaptainBrew login or registration inside the recipe builder.<\/li>\n<li><strong>WooCommerce add-to-cart:<\/strong> customers click \"Add to cart\" in the recipe builder and the ingredients go straight into your WooCommerce cart. Ingredients are matched to products by SKU, and pack sizes are converted to whole packs. The header cart icon updates without leaving the recipe, and the cart page gets a Clear cart button so customers can start over.<\/li>\n<\/ul>\n\n<h4>How it works<\/h4>\n\n<p>Each widget is an iframe served by captainbrew.com. The plugin builds the iframe with your settings, sizes it for the visitor's screen and loads it lazily. When add-to-cart is on, the recipe builder sends the recipe's ingredients to the page, and the plugin adds the matching products to the WooCommerce cart.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin embeds widgets hosted by CaptainBrew (captainbrew.com). It does not work without that service.<\/p>\n\n<ul>\n<li><strong>What is loaded:<\/strong> every page with a CaptainBrew block or shortcode loads the widget from <code>https:\/\/captainbrew.com\/iframes\/<\/code> when the visitor scrolls to it.<\/li>\n<li><strong>What is sent:<\/strong> the visitor's browser sends the usual request data to captainbrew.com (IP address, user agent and the referring page). CaptainBrew uses the referring page's domain to find your account. The widget URL contains your display settings and your account's Client ID. If you turn on \"Keep recipes for customers who are logged in to your site\", the URL also contains an anonymous ID for logged-in customers: a one-way hash of the WordPress user ID. No names, emails or order data are sent.<\/li>\n<li><strong>Connection check (only after you allow it):<\/strong> nothing is sent when the plugin is activated. When an administrator clicks Check connection under Settings &gt; CaptainBrew, or connects the site to a business account, the plugin sends your site's domain to <code>https:\/\/captainbrew.com\/iframes\/connection_status.php<\/code>. After that it asks again when an administrator opens the settings page, at most every 12 hours. The answer says whether your widgets will load and whether your trial has ended, and gives your account's Client ID, which the plugin saves and adds to the widget URLs. The plugin has no scheduled background requests.<\/li>\n<li><strong>Connect to CaptainBrew (optional):<\/strong> clicking Connect on the settings page opens the CaptainBrew business portal with your site's address, where you sign in and approve the site. The portal sends you back with a one-time code; the plugin sends that code and your site's address to <code>https:\/\/captainbrew.com\/plugin_api.php<\/code> and stores the key it gets back. Opening the settings page then loads your widget colors and registered domain from the same address, and saving sends the colors and domain you changed. Disconnect from the plugin or from the business portal at any time.<\/li>\n<li><strong>Product catalog import (optional, connected sites):<\/strong> the Product Catalog tab loads your catalog's product counts from <code>https:\/\/captainbrew.com\/plugin_api.php<\/code>, and Import into CaptainBrew uploads the .xlsx workbook you choose there, to replace your product catalog on CaptainBrew (your WooCommerce products are not changed). The sample workbook is downloaded from <code>https:\/\/captainbrew.com\/download_catalog_template.php<\/code>.<\/li>\n<li><strong>Inside the widget:<\/strong> visitors may save recipes and brew sessions in the recipe builder. Those are stored by CaptainBrew. A visitor without an account can ask for their recovery code by email; CaptainBrew uses that address only to send the code.<\/li>\n<li><strong>Add to cart:<\/strong> cart contents never leave your site. The plugin receives the ingredient list from the widget in the browser and adds products to the WooCommerce cart on your own server.<\/li>\n<\/ul>\n\n<p>CaptainBrew terms of use: https:\/\/captainbrew.com\/terms\nCaptainBrew privacy policy: https:\/\/captainbrew.com\/privacy<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Create a CaptainBrew business account at https:\/\/captainbrew.com\/business_portal_register.php with your site's domain, and activate it from the email you receive.<\/li>\n<li>Install and activate the plugin. <strong>Settings &gt; CaptainBrew<\/strong> shows whether your site is connected.<\/li>\n<li>Add the <strong>CaptainBrew Widget<\/strong> block to any page and pick a widget, or use a shortcode such as <code>[captainbrew widget=\"abv-calculator\"]<\/code>.<\/li>\n<li>Optional, for WooCommerce add-to-cart: import your catalog in the business portal using your WooCommerce SKUs as the <code>productIdentifier<\/code>, then turn on <strong>Add to cart<\/strong> under WooCommerce add to cart.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20an%20account%3F\"><h3>Do I need an account?<\/h3><\/dt>\n<dd><p>Yes. Widgets only load on the domain registered in an activated CaptainBrew business account. The first month is free. You do not need to paste anything into the plugin: CaptainBrew finds your account from your site's domain, and the plugin fills in your Client ID by itself.<\/p><\/dd>\n<dt id=\"the%20widget%20shows%20%22forbidden%22\"><h3>The widget shows \"Forbidden\"<\/h3><\/dt>\n<dd><p>Widgets only load on the domain registered in your CaptainBrew business account, once it is activated and while your trial or subscription is active. Settings &gt; CaptainBrew shows which of these applies.<\/p><\/dd>\n<dt id=\"which%20shortcode%20attributes%20are%20there%3F\"><h3>Which shortcode attributes are there?<\/h3><\/dt>\n<dd><ul>\n<li><code>widget<\/code> (required): the widget slug. The list, with a Copy button for each, is in Settings &gt; CaptainBrew &gt; Shortcodes.<\/li>\n<li><code>height<\/code>: a fixed height in pixels. By default the height adapts to the screen width.<\/li>\n<li><code>title<\/code>: <code>yes<\/code> or <code>no<\/code> to show or hide the widget's title.<\/li>\n<li><code>whitelabel<\/code>: <code>yes<\/code> or <code>no<\/code> to override the whitelabel setting for this recipe builder.<\/li>\n<\/ul><\/dd>\n<dt id=\"how%20are%20ingredients%20matched%20to%20my%20products%3F\"><h3>How are ingredients matched to my products?<\/h3><\/dt>\n<dd><p>By SKU. The <code>productIdentifier<\/code> of each ingredient in your CaptainBrew catalog is looked up as a WooCommerce SKU (simple products and variations). If your identifiers differ from your SKUs, add lines such as <code>PALE-MALT-2LB = MALT-001<\/code> under Different SKUs. You can map to a product ID instead of a SKU. Ingredients that are not found, are out of stock or cannot be bought are listed to the customer, and the rest are added.<\/p><\/dd>\n<dt id=\"can%20i%20change%20the%20colors%3F\"><h3>Can I change the colors?<\/h3><\/dt>\n<dd><p>Yes. Set your brand colors in the CaptainBrew business portal under Settings. They apply to every widget on your registered domain.<\/p><\/dd>\n<dt id=\"developers\"><h3>Developers<\/h3><\/dt>\n<dd><ul>\n<li><code>CAPTAINBREW_BASE_URL<\/code> constant: load widgets from another CaptainBrew install, for example for local development.<\/li>\n<li><code>captainbrew_widgets<\/code> filter: change the widget list.<\/li>\n<li><code>captainbrew_product_id<\/code> filter: custom product matching. Receives the matched product ID and the productIdentifier.<\/li>\n<li><code>captainbrew_woocommerce_cart_enabled<\/code> filter.<\/li>\n<li><code>captainbrew_show_clear_cart<\/code> filter: return false to hide the Clear cart button on the cart page.<\/li>\n<li><code>captainbrew:added_to_cart<\/code> DOM event on <code>document.body<\/code> after products are added.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>New widget: Beer Calories Chart, with calories and ABV for popular beers and estimated calories for each beer style.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release: 38 widgets, block, shortcode, responsive heights, whitelabel mode, WooCommerce add-to-cart and a connection check on the settings page.<\/li>\n<\/ul>","raw_excerpt":"Brewing calculators, charts and a recipe builder for homebrew shops. Customers can send recipe ingredients to your WooCommerce cart.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/415818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=415818"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/captainbrewcalculators"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=415818"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=415818"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=415818"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=415818"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=415818"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=415818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}