Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Contact Form 7

Contact Form 7 + Webhooks

POST submission JSON to your endpoint on mail sent.

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),
    ]);
});

Leave a reply

Your email address will not be published. Required fields are marked *