
內容簡介
總結:RTWC Webhook for Contact Form 7 可讓您將表格提交的數據以精細控制的方式發送至任何外部 URL 或服務(如 Zapier、Make.com 或您自己的自訂 API)。
問題與答案:
1. 這個外掛的高級功能有哪些?
- 可分配多個 Webhooks 至單一表單。
- 可以從下拉選單中選擇 CF7 標籤,將其映射到自定義 JSON 金鑰。
- 條件邏輯:只有在特定字段值符合您的標準時才會觸發 Webhooks。
- 可添加授權令牌或其他自定義標頭(例如 Bearer tokens)。
- 日誌系統:記錄最近 10 次 Webhook 請求的完整 URL、標頭、有效負載和伺服器回應。
- 支援多種方法:可使用 POST、GET 或 PUT 請求。
外掛標籤
開發者團隊
② 後台搜尋「RT Webhook for Contact Form 7」→ 直接安裝(推薦)
原文外掛簡介
RT Webhook for Contact Form 7 is the most flexible webhook integration plugin for CF7. Connect your WordPress contact forms to hundreds of external services and automate your entire lead and notification workflow — without writing a single line of code.
Whether you want to push new leads to your CRM, trigger Zapier automations, fire Make.com (formerly Integromat) scenarios, post to a Slack channel, or send data directly to your own REST API endpoint — this plugin gives you complete control over what data is sent, when it is sent, and how it is formatted.
Why Choose RT Webhook for Contact Form 7?
Most CF7 webhook plugins send a fixed payload with no customisation. RT Webhook for Contact Form 7 is built differently:
You choose exactly which fields go into the JSON payload using a visual dropdown interface — no shortcodes to memorise, no manual tag copying.
You control when the webhook fires using per-webhook conditional logic rules based on field values — send only the submissions that matter.
You inspect every request with a built-in logging panel that shows the full URL, HTTP method, request headers, JSON payload, status code, and raw server response body for the last 10 submissions.
You secure your endpoints by adding any custom HTTP header — Bearer tokens, API keys, or any proprietary header your service requires.
Key Features
Multiple Webhooks Per Form
Create as many webhooks as you need for a single Contact Form 7 form. Send a new lead to your CRM, notify your team on Slack, and update a Google Sheet — all triggered by the same form submission, simultaneously.
Dynamic Field Mapping
Map any CF7 form tag (text, email, select, radio, checkbox, textarea, and more) to a custom JSON key using an intuitive row-based interface. The JSON payload your endpoint receives looks exactly the way your API expects it — no extra sanitisation required on the receiving end.
Conditional Logic
Prevent unnecessary or irrelevant webhook calls with built-in per-webhook conditional rules. Fire a webhook only when a specific field equals, does not equal, or contains a defined value. Perfect for routing leads by service type, country, budget range, or any other field value.
Custom HTTP Headers
Add any number of custom HTTP headers to each webhook — Authorization: Bearer your-token, x-api-key: your-key, Content-Type overrides, or any proprietary header required by your endpoint. Stored and managed securely in WordPress post meta.
HTTP Method Support
Choose between POST, GET, or PUT to match your API’s specification. GET requests append all mapped fields as query-string parameters; POST and PUT send a JSON body with a 45-second timeout.
Built-in Request Logging
Debug failed webhooks with confidence. The Logs panel records the last 10 requests per webhook: endpoint URL, HTTP method, request headers, JSON payload, HTTP status code, and the raw response body. Logs can be cleared at any time with a single click.
React-Powered Admin UI
The admin interface is built with React and WordPress UI components for a fast, modern experience. Create, edit, enable, disable, and delete webhooks without page reloads. RTL layout is fully supported.
Draft / Publish Workflow
Each webhook can be saved as a draft while you configure it, then published when ready — preventing accidental webhook fires during setup.
Popular Use Cases
Send CF7 leads directly to HubSpot, Salesforce, Zoho CRM, or Pipedrive
Trigger Zapier Zaps on form submission — connect to 6,000+ apps
Fire Make.com (Integromat) scenarios to run complex multi-step automations
Post new contact form submissions to a Slack or Microsoft Teams channel
Sync form entries with Airtable, Notion, or Google Sheets via their REST APIs
Send form data to n8n or Pipedream self-hosted automation workflows
Route leads to different CRM pipelines based on the service or product selected
Hit your own custom backend REST API or internal webhook receiver
Trigger email sequences in ActiveCampaign, Mailchimp, or ConvertKit
How It Works
Install and activate this plugin. Contact Form 7 must be installed and active.
Go to RTWC Webhooks in your WordPress admin sidebar.
Click Add Webhook, give it a name, and select the CF7 form to connect.
Enter your webhook endpoint URL and choose the HTTP method (POST / GET / PUT).
Open the Field Mapping tab and map CF7 form tags to your desired JSON keys.
Optionally configure Conditional Logic to control when the webhook fires.
Optionally add Custom Headers such as Authorization: Bearer your-token.
Set the status to Published and save.
Submit your form — then check the Logs tab to see the full request and response.
Technical Details
Hooks into wpcf7_before_send_mail — the standard CF7 action, ensuring webhooks fire reliably after form validation.
Webhooks are stored as the custom post type rtwc_webhook with all settings in post meta.
The admin UI communicates via a fully RESTful internal API at /wp-json/rtwc/v1/ — endpoints for listing, creating, updating, and deleting webhooks, as well as fetching CF7 forms and their field tags.
All REST endpoints require the manage_options capability — administrator access only.
REST routes are loaded on both admin and frontend requests, ensuring reliability in all server request contexts.
Outbound HTTP requests use WordPress’s native wp_remote_request() with a 45-second timeout.
All input is sanitised with WordPress core functions before saving or transmitting.
Compatibility
Works with Contact Form 7 — the most widely used WordPress form plugin (5M+ active installs).
Compatible with any HTTP webhook receiver: Zapier, Make.com, n8n, Pipedream, Slack, Discord, HubSpot, Salesforce, Airtable, Notion, ActiveCampaign, and more.
Tested with WordPress 5.0 through 6.9.
PHP 7.4 or higher required.
RTL (right-to-left) layout supported.
Compatible with all major WordPress themes and page builders including Elementor, Divi, and Gutenberg.
