Contact Form 7 + Webhooks — a practical guide to Contact Form 7 webhooks with clear examples you can reuse in real projects.
Contact Form 7 Tutorial Series (62/100). Prefer one article? Read the complete Contact Form 7 tutorial.
Short description
Webhooks enable custom backends with retries and signature verification.
Webhook sketch
add_action('wpcf7_mail_sent', function ($form) {
$submission = WPCF7_Submission::get_instance();
$payload = $submission ? $submission->get_posted_data() : [];
wp_remote_post('https://example.com/hook', [
'timeout' => 8,
'headers' => ['Content-Type' => 'application/json'],
'body' => wp_json_encode($payload),
]);
});