=== TechPad – WhatsApp for Contact Form 7 ===
Contributors: thetechpad
Tags: contact form 7 whatsapp, cf7 whatsapp, whatsapp form notifications, whatsapp contact form, lead notifications, whatsapp cf7
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send every Contact Form 7 submission straight to your WhatsApp inbox — never miss a lead again.

== Description ==

Connect your Contact Form 7 forms to [The Tech Pad](https://thetechpad.com) — the WhatsApp team workspace —
and every submission lands on your WhatsApp the moment it happens:

* **Never miss a lead** — form submissions arrive in your WhatsApp inbox instantly, where you can
  reply on the same thread. It's a conversation, not a ping.
* **Per-form control** — enable WhatsApp notifications per form, override the recipient, pick the
  template and map each form field to your message.
* **Official WhatsApp Business API** — messages are sent through Meta's official Cloud API via
  The Tech Pad, from your own WhatsApp number.
* **Approved templates only** — the settings page lists your account's approved templates so you
  pick a valid one every time.
* **Test send + delivery log** — send a test message before you go live, and keep a 30-day delivery
  log with status, wamid and retry on failure.
* **Spam-safe** — Akismet and honeypot submissions are skipped automatically, and a per-form rate
  limit protects your WhatsApp quota.

The Tech Pad is the WhatsApp team inbox: all your leads, orders and chats in one workspace, with
AI-assisted replies, automations and analytics.

Also available for [WooCommerce](https://wordpress.org/plugins/techpad-automated-order-notifications-cart-recovery-for-woocommerce/) — order notifications, shipment tracking and abandoned-cart recovery.

== How it works ==

1. Install and activate this plugin (Contact Form 7 must be active).
2. Open **The Tech Pad → Contact Form 7** and connect with your API key + phone number ID from
   The Tech Pad dashboard (Developer settings).
3. Choose your default template, then enable each form and map its fields.
4. Send a test message and you're live.

== Installation ==

1. Upload `the-tech-pad-cf7.zip` via **Plugins → Add New → Upload Plugin**, or extract it into
   `wp-content/plugins/`.
2. Activate the plugin (Contact Form 7 must be active — otherwise you'll see a notice).
3. Open **The Tech Pad → Contact Form 7**, add your API key and phone number ID, and save.
4. Pick your default template, enable the forms you want notified, and map fields if needed.

== Frequently Asked Questions ==

= Do I need a The Tech Pad account? =
Yes — messages are sent from your The Tech Pad workspace WhatsApp number. Create a free workspace
at thetechpad.com/wa.

= Which WhatsApp templates do I need? =
Outside the 24-hour customer-service window, WhatsApp requires approved templates. Create one in
your workspace's Templates module (e.g. `new_lead`), get it approved by Meta, then select it in
the plugin settings.

= Can I send a confirmation to the person who filled the form? =
Yes — if your form has a phone field and an explicit opt-in checkbox, you can send the submitter a
confirmation. This is only ever sent when the checkbox is ticked (WhatsApp compliance).

= Which form fields can I use in my message? =
All of them. Leave the field mapping empty to include every field in submission order, or type the
field names in the order your template expects them ({{1}}, {{2}}, …).

== Changelog ==

= 1.1.3 =
* Fixed: an enabled form could send nothing while the log blamed the API key.
  The readiness check asked for the recipient and template to be set globally,
  even though both can be set per form — so a form with its own recipient and
  template was skipped with "Connection not configured". Readiness now needs
  the two credentials only (send key + sending number), and every skip message
  names exactly what is missing.
* New: the Connection card shows a checklist of anything a send still needs
  (send key, WhatsApp number, default recipient, default template) instead of a
  bare "Not connected yet".
* New: forms that are enabled but cannot send yet are flagged in red above the
  forms table, with the reason per form (no template chosen, no recipient, …).
* New: delivery-log skip reasons now list the missing setup items and point at
  the exact field to fill, so "form submitted, no WhatsApp message" is
  diagnosable without support.

= 1.1.2 =
* Fixed: an enabled form could send nothing while the log blamed the API key.
  The readiness check asked for the recipient and template to be set globally,
  even though both can be set per form — so a form with its own recipient and
  template was skipped with "Connection not configured". Readiness now needs
  the two credentials only (send key + sending number), and every skip message
  names exactly what is missing.
* New: the Connection card shows a checklist of anything a send still needs
  (send key, WhatsApp number, default recipient, default template) instead of a
  bare "Not connected yet".
* New: forms that are enabled but cannot send yet are flagged in red above the
  forms table, with the reason per form (no template chosen, no recipient, …).
* New: delivery-log skip reasons now list the missing setup items and point at
  the exact field to fill, so "form submitted, no WhatsApp message" is
  diagnosable without support.

= 1.1.1 =
* New: every Tech Pad plugin now lives in ONE **The Tech Pad** menu in wp-admin.
  Each platform gets its own labelled row (Contact Form 7, WPForms, Bookly…)
  instead of every plugin adding an identically named row under Settings, and
  the menu opens with a site overview: your connection plus a link to each
  Tech Pad plugin installed on this site.
* New: one shared delivery log for the whole family. Install several Tech Pad
  plugins and their sends are recorded in one table (each plugin still shows
  only its own provider's rows). Rows from the previous per-plugin table are
  carried over automatically on update.
* New: one shared template-list cache, so a site with several Tech Pad plugins
  asks the API once every five minutes instead of once per plugin.

= 1.1.0 =
* New: one-click email connect — the plugin creates your free Tech Pad
  workspace, send key and site connection from just your email (no dashboard
  visit, no key entry). Connect your WhatsApp number in the dashboard and the
  settings page auto-fills the number ID and templates.
* New: one connect serves the whole site — install another Tech Pad plugin and
  it is already connected (shared site connection).

= 1.0.0 =
* Initial release: per-form WhatsApp notifications via `wpcf7_mail_sent`, approved-template picker,
  field mapping, per-form recipient override, test send, delivery log with retry, Akismet/honeypot
  skip and per-form rate limiting.
