HubSpot WordPress Plugin WooCommerce Integration Series
A complete HubSpot WordPress plugin walkthrough for WooCommerce stores. Five examples, one stack — deals, products, line items, contacts, and the full HubSpot object graph. No Zapier. No middleware. WordPress → HubSpot directly.
HubSpot's official hubspot plugin wordpress integration handles the basics — form-to-contact capture and a few stock fields. The moment you need more (deal creation on a specific WooCommerce event, line items mirrored from your product catalog, contact-deal associations on order completion), the official plugin's fixed schema runs out.
This series uses Webhook Actions as the HubSpot WordPress plugin layer: a free WordPress plugin that ships any WordPress event to any HTTP endpoint, with retry, logging, conditions, and a full REST API. The two features that make stateful HubSpot flows possible — Code Glue (PHP snippets that run pre and post dispatch) and dynamic URL templates ({{ field.path }} in endpoint URLs) — are part of the free plugin from v3.0.0 on.
Snippets are the convenient path, not the only path. Every step in this series can also be written as code you deploy yourself — the same flow in a mu-plugin against three documented hooks: fswa_webhook_payload (pre-dispatch payload shaping), fswa_webhook_url (URL template expansion), and the fswa_glue_post_dispatch action (post-dispatch side effects). Look for the blue Filter OK badge on a step — it names the hooks that do the same job as that step's snippet. Worth knowing on hosts that set DISALLOW_FILE_EDIT, where WordPress will not let the admin write a snippet at all.
Each example below is independent but builds on the previous one. Part 5 ties everything together into a single coherent integration: order placed → deal created → line items mirrored → contact created → everything associated → deal moved to Closed Won on order completion.
Five Examples
Common questions always ask.
Don't see yours? Open an issue on GitHub or check the full reference in the API docs.