WP Manifestindependent plugin directory
manifest / editor / hubspot-form-block

Hubspot Form Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A lightweight Hubspot form embed block

★ 2stars
2release downloads
11kcomposer installs
v0.8.1latest · 14d ago

Install

Download hubspot-form-block.zip From the v0.8.1 release on GitHub, Oct 8, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/humanmade/hubspot-form-block/releases/download/v0.8.1/hubspot-form-block.zip

On Packagist as humanmade/hubspot-form-block:

composer require humanmade/hubspot-form-block
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress block plugin that embeds HubSpot Forms v4 directly in page content. Forms render inline (not iframed) — HubSpot injects DOM into the container element.

Features

  • HubSpot Forms v4 API — uses the modern developer embed API
  • Inline success message — add any WordPress blocks as the post-submission message; shown in place of the form after submission
  • Gated content — optionally remember submissions in the browser (per page URL) and show the success content immediately on return visits, hiding the form permanently; supports a "First Submission Message" block for content only shown at the moment of first submission
  • Global settings — set Portal ID and region site-wide; override per block instance
  • Google Tag Manager — fires a configurable dataLayer event on submission (default: hubspot_form_submit)
  • Deferred script loading — HubSpot tracking JS loaded asynchronously in the footer
  • Custom submit button text — override the form's submit button label per block instance
  • Redirect on submit — optionally redirect to a URL instead of showing an inline message
  • Multiple instances — multiple instances of the same form on a single page are fully supported

Block settings

Setting Description
Portal ID HubSpot portal ID. Can be set as a global default and overridden per block.
Region eu1 (Europe) or na1 (North America). Can be set as a global default.
Form ID HubSpot form ID.
Redirect URL Redirect to this URL after submission. Overrides the inline message if set.
Submit button text Override the form's submit button label.
GTM event name dataLayer event name pushed on submission. Defaults to hubspot_form_submit.
Success message (inner blocks) WordPress blocks shown in place of the form after successful submission. Not shown if a redirect URL is set.
Enable gated content When on, the browser remembers that this form has been submitted on this page (stored in localStorage). Returning visitors see the success message immediately instead of the form. Use the "Insert First Submission Message" button to add a block whose content is only shown at the moment of the first submission — stripped on subsequent visits. Disabled when a redirect URL is set.

Global settings

Portal ID and region can be set globally via Settings → General in the WordPress admin (or via the REST API at /wp-json/wp/v2/settings). Individual block instances can override these values. Admins can promote per-block values to global defaults using the "Set as global defaults" button in the block sidebar.

Styling forms

Forms can be styled from within the HubSpot dashboard, or by overriding the CSS variables documented here:

https://developers.hubspot.com/docs/cms/start-building/features/forms/forms#define-custom-styling-for-embedded-forms-using-css

Installation

  1. Download hubspot-form-block.zip from the latest release.
  2. Upload and activate via Plugins → Add New → Upload Plugin in the WordPress admin.
  3. Set your Portal ID and region under Settings → General.
  4. Insert the HubSpot Form block and enter your Form ID.

Developer workflow

npm install
npm run start           # Watch mode — compiles src/ to build/
npm run build           # Production build
npm run playground:start  # Start local WordPress via Playground on :9400
npm run test:e2e        # Run Playwright E2E tests (starts Playground automatically)
npm run test:e2e:debug  # Playwright debug mode
npm run test:e2e:watch  # Playwright UI mode
npm run lint:js         # Lint JS
npm run lint:css        # Lint CSS

Note: The --webpack-copy-php flag on build/start is required — it copies render.php from src/ to build/. Do not remove it.

Architecture

src/
├── block.json          # Block registration, attributes, supports
├── index.js            # Block registration entry
├── edit.js             # Block editor UI (InspectorControls + inner blocks)
├── save.js             # Saves inner block content
├── view.js             # Frontend JS: form events, success message, GTM
├── render.php          # Server render: form container + <template> for success message
├── editor.scss         # Editor-only styles
└── style.scss          # Frontend + editor styles
hubspot-form-block.php  # Plugin entry: block registration, script enqueue, settings API

Config injection: Each form instance gets a unique target ID (hubspot-form-{formId}-{n}). A `

Releases

14 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v0.8.1 latest
Oct 8, 2026 14d ago
hubspot-form-block.zip
2
Oct 8, 2026 14d ago
hubspot-form-block.zip
0
May 19, 2026 5mo ago
tag only
—
Apr 17, 2026 6mo ago
tag only
—
Apr 15, 2026 6mo ago
tag only
—
Apr 14, 2026 6mo ago
tag only
—
Feb 27, 2026 7mo ago
tag only
—
Oct 4, 2024 2 years ago
tag only
—
Oct 3, 2024 2 years ago
tag only
—
Aug 6, 2024 2 years ago
tag only
—
Aug 5, 2024 2 years ago
tag only
—
Aug 5, 2024 2 years ago
tag only
—
Aug 2, 2024 2 years ago
tag only
—
Aug 1, 2024 2 years ago
tag only
—
A grade

Security

Hubspot Form Block 0.8.1 · audited by WP Registry

No security issues found.

Audited release
0.8.1
Findings
none
Worst severity
—
Content hash
d6a01b338de7d8a1332a5a45…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.