=== Kayode Chat Lead Capture ===
Contributors: damilolakayode
Tags: chat, leads, contact, whatsapp, marketing
Requires at least: 5.0
Tested up to: 7.0.3
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Capture customer names, emails, and messages before they start a chat on WhatsApp. Includes a local database and analytics dashboard.

== Description ==

Kayode Chat Lead Capture is a professional marketing tool designed to help business owners stop losing potential customers. While standard click-to-chat buttons send users away from your site instantly, this plugin acts as a lead-generation gatekeeper.

= How it works =
When a visitor clicks the floating WhatsApp button, a professional modal appears asking for their Name, Email, and Message. Once submitted, the data is saved locally to your WordPress database. The plugin then automatically pre-fills the visitor's message into WhatsApp and redirects them to the chat.

= Features =
*   **Lead Capture:** Save contact details to a custom database table.
*   **Smart Pre-fill:** Automatically types the customer's message into WhatsApp.
*   **Analytics:** View total clicks and leads captured in your dashboard.
*   **GDPR Ready:** Includes a mandatory consent checkbox for privacy compliance.
*   **CSV Export:** Download your leads list for email marketing.

== Installation ==

1. Upload the `kayode-chat-lead-capture` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the 'Kayode Chat' menu in your sidebar to configure your settings.

== External services ==

This plugin relies on the official WhatsApp API to facilitate communication between the website visitor and the site owner.

* **Service:** WhatsApp Public API
* **Usage:** Redirects the user to a WhatsApp chat window with a pre-filled message.
* **Data sent:** The visitor's name and the message they typed in the lead form are passed as URL parameters to the WhatsApp API.
* **Service Link:** https://api.whatsapp.com
* **Terms of Service:** https://www.whatsapp.com/legal/
== Changelog ==

= 1.0.1 =
* Fixed analytics counter displaying blank when there are no clicks.
* Other minor improvements and bug fixes.
== Changelog ==

= 1.0.2 =
* Fixed plugin loading issue on some WordPress installations.
* Improved compatibility and stability.
== Changelog ==

= 1.0.3 =
* Fixed compatibility issues on some WordPress installations.
* Improved plugin loading and stability.
* Minor bug fixes and code improvements.
= 1.0.4 =
* updates on upgrade buton
= 1.0.5 =
* updates on upgrade buton