Every
LHAI-generated pages carry a _lhai_generated post-meta flag. On those pages, the plugin enqueues a tiny runtime script (about 3 KB) that:
_lhai_generated
submit
<form>
admin-ajax.php
The form never reloads. The page HTML is unchanged. If JavaScript is disabled for the visitor, the form falls back to a normal server POST — which fails gracefully (no 500 error, just no submission).
In the Visual Editor, click any <form> and a Form Settings accordion appears near the bottom of the sidebar.
These three values are stored as data-lhai-webhook, data-lhai-thankyou, and data-lhai-success-msg attributes on the <form> element. They survive publish, edit, duplicate, and manual HTML export.
data-lhai-webhook
data-lhai-thankyou
data-lhai-success-msg
Every submission writes a row to {prefix}lhai_leads in your WordPress database:
{prefix}lhai_leads
new
read
archived
Every submission also fires wp_mail() to the WordPress site admin email (get_option('admin_email')). Subject: New lead from [Page Title] — LHAI. Body: an HTML table of every field plus a link back to the Leads page.
wp_mail()
get_option('admin_email')
Open LHAI → Leads. You'll see:
Configure Webhook URL on a form and every submission fires a POST:
POST https://hooks.zapier.com/... Content-Type: application/json { "lead_id": 47, "page_id": 128, "page_title": "Pilates Tel Aviv — Book a Trial", "fields": { "Name": "Dana", "Email": "[email protected]", "Preferred time": "Tuesday evening" }, "submitted_at": "2026-04-25 14:18:02" }
The request is fired non-blocking, so a slow or dead webhook doesn't delay the visitor's confirmation screen. The lead is still stored in your database regardless of webhook outcome.
LHAI injects a hidden honeypot field (lhai_hp) into every form. Bots that fill every input will trip it; the submission is silently dropped with a 200 response so the bot thinks it succeeded and moves on. No CAPTCHA required for most use cases.
lhai_hp
Two flows depending on how the form is configured: