Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
CF7 to Webhook icon

CF7 to Webhook

v5.3.1
by Mário Valney · 5.0 (53 reviews)

Use Contact Form 7 as a trigger to any webhook!

30K+ active installs Updated Nov 26, 2026 Tested to 7.1.5 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
CF7 to Webhook

About CF7 to Webhook

CF7 to Webhook is a plugin that allows you to connect Contact Form 7 with any webhook that receives JSON data. It has been trusted by over 30,000 WordPress websites and can be easily activated and configured. It is also compatible with other plugins such as MultiLine files for Contact Form 7.

Screenshots

CF7 to Webhook screenshot
CF7 to Webhook screenshot
CF7 to Webhook screenshot
CF7 to Webhook screenshot

Frequently asked questions

What is CF7 to Webhook?
CF7 to Webhook is a WordPress plugin that allows you to use Contact Form 7 as a trigger to send data to any webhook. It connects the best contact form plugin for WordPress with webhooks that receive JSON data.
How do I use CF7 to Webhook?
To use CF7 to Webhook, activate both "Contact Form 7" and "CF7 to Webhook." Then, configure a URL to send data, or go to Zapier to create your Zap.
Does CF7 to Webhook work with Zapier?
Yes, CF7 to Webhook can be used with Zapier. You can activate and configure Zapier to receive data from your Contact Form 7 submissions.
How many active installations does CF7 to Webhook have?
CF7 to Webhook is trusted by more than 30,000 WordPress websites. It has 30,000 active installs.

Changelog

5.3.1

  • Fixed a custom body becoming invalid JSON when a checkbox or multiple select is inside quotes, as in the Slack template. Inside quotes, the options are now sent as text separated by commas (props to @jakhongirikromidinov for the report).
  • The ‘ctz_post_request_args’ filter now receives the form data as its fifth parameter.

5.3.0

New feature: Delete uploaded files after a number of days (props to @Zodiac1978 for the suggestion).

  • New “Delete after” option, in “Media” under Advanced settings: once a day, deletes the files of the form older than that number of days, including their media library attachments. Only administrators can change it.
  • Upload folders now start with the submission date (UTC).

5.2.0

New feature: Add uploaded files to the media library (props to @Zodiac1978 for the suggestion).

  • New “Add to Library” option, in “Media” under Advanced settings: each uploaded file becomes a private attachment, even when sending file content.
  • New “Delete all files” button to delete every file uploaded with a form, including its media library attachments. Only administrators can use it.
  • Upload folders now get an empty index.php, so servers with directory listing on do not list submissions.
  • Fixed templates not filling the body with the form fields since 5.1.0.
  • Fixed the template selector staying empty on sites with WP_DEBUG on.
  • Fixed the form editor asking to confirm leaving the page without changes.
  • Fixed header injection through form fields in custom headers (props to @kta1kri for the responsible disclosure).
  • Documentation moved to cf7-to-webhook.valney.dev/docs, with new guides and a FAQ. The Help section of the webhook panel now points there.
  • Requires WordPress 5.0 or later.
  • Reviewed the plugin with the WordPress agent skills and made some improvements.
  • Debug helpers now need CFTZ_ADD_DEBUG_FUNCTIONS.

5.1.1

  • Fixed webhooks not being sent when the submitted data has invalid UTF-8. Invalid sequences are now replaced, as Contact Form 7 does (props to @Zodiac1978 for a suggestion).
  • Fixed fields with invalid UTF-8 being sent empty when using a custom body.
  • Fixed a PHP warning (“Undefined variable $data”) in error notifications.

5.1.0

  • Fixed XSS vulnerabilities in admin panel output (body preview and form input helpers).
  • Added capability check (wpcf7_edit_contact_form) on webhook settings save.
  • Added server-side HTTP method whitelist (GET, POST, PUT, PATCH, DELETE).
  • Sensitive headers (Authorization, x-api-key, etc.) are now redacted from error notification emails.
  • Replaced uniqid() with random_bytes() for uploaded file directory names.
  • Replaced raw <script> echo with wp_add_inline_script() for admin JS data.

Note:

If your site uses custom roles that can edit CF7 forms but do not have the wpcf7_edit_contact_form capability, webhook settings will no longer be saved for those users. Grant the capability explicitly or use the wpcf7_edit_contact_form capability in your role setup.

5.0.1

Security patch release.

  • Added SSRF protection: outbound webhook requests now use wp_safe_remote_request(), blocking requests to private, loopback, and link-local addresses (CVE-2026-11395).

5.0.0

New feature: Added support for mail tags in headers (props to @anthonypenner).

  • Headers can now be replaced by all data sent to webhook.
  • Special mail tags are automatically available in headers without explicit configuration.

Support to “Contact Form 7 Multi-Step Forms” plugin.

  • Check FAQ.
  • Added ‘ctz_get_data_from_cf7msm_posted_data’ filter to deactivate this support.

Note:

It’s not a breaking change update but we had some changes in custom header / body.
They are very complex features that I’m not sure how everyone is using them in the wild. This is the reason we are going to 5.0.0.

4.0.2

  • Improved notification (headers and method added).

4.0.1

  • Fixes ‘ctz_post_request_result’ action not triggering on errors.
  • Added ‘ctz_post_request_ignore_errors’ filter to ignore error handle.

4.0.0

  • New feature: TEMPLATES.
  • New feature: advanced custom body.
  • New feature: error notification and status check.
  • New feature: send file content as base64 (props to @ozanerturk).
  • Settings UI renewed.

  • New template: Slack Integration.

3.0.2

  • Avoid empty webhook URLs.

3.0.1

  • Just some docs and donate link.
  • Added ‘ctz_remove_donation_alert’ filter to remove donate link.

3.0.0

  • New feature: placeholders in webhook URL.
  • Added ‘ctz_hook_url_placeholder’ filter.
  • Tested against new CF7 and WP versions.

2.4.0

  • Added support to “raw” values (label value in PIPES).
  • Added support to multiple webhook URLs.
  • Added ‘ctz_trigger_webhook_errors’ action to allow trigger submission error after ignoring them.
  • Tested against new CF7 and WP versions.

2.3.0

  • Added Custom Header option.
  • Added ‘ctz_ignore_default_webhook’ to allow ignore core submit.
  • Added more parameters to ‘ctz_trigger_webhook’ action.
  • Added more parameters to ‘ctz_post_request_args’ action.

2.2.5

  • Some minor adjustments.
  • Tested against new CF7 and WP versions.

2.2.4

  • Support to CF7 new way to load properties.

2.2.3

  • Support to CF7 multiple files upload.
  • Support to files with same name.

2.2.2

  • Support to CF7 5.2.1 changing ‘wpcf7_special_mail_tags’ filter.

2.2.1

  • Support to CF7 5.2 changing ‘free_text’ input name.

Props to @brunojlt

2.2.0

  • Support to free_text option on radio and checkboxes.

2.1.4

  • Added ‘ctz_hook_url’ filter to change webhook URL

Props to @shoreline-chrism

2.1.2

  • Fix checkboxes.

2.1.1

  • Fix slashes on POST data.

2.1.0

  • Support to rename fields.

2.0.2

  • Plugin renamed.

2.0.0

  • Support to submit files.

1.4.0

  • Show form error when WordPress request fails and added support to throw or own exceptions.
  • Added ‘ctz_post_request_result’ action after submit.
  • Added ‘ctz_trigger_webhook_error_message’ filter to change form message error.

1.3.1

  • Remove PHP 7+ dependency.
  • It’s sad… I know.

1.3.0

  • Added support to [Special Mail Tags] (https://contactform7.com/special-mail-tags) on CF7.
  • Tested against WP 5.0.2 and CF7 version 5.1.

1.2.1

  • Tested against Contact Form 7 version 5.0.

1.2

  • Added support to PIPE on CF7.
  • Tested against WP 4.9.2.

1.1.1

  • Fixed problem with a function inside empty() prior PHP 5.5.

1.1

  • Added the ‘application/json’ header by default to POST request.
  • Added ‘ctz_post_request_args’ filter to POST request args.
  • Tested against WP 4.9.

1.0

  • It’s alive!
  • Form configuration.
  • Integration to Zapier webhook.
  • Ignore or not CF7 mail sent.

Try other plugins