=== EmailFunnelAI ===
Plugin Name: EmailFunnelAI
Plugin URI: https://emailfunnel.ai
Author: Ratul Hasan
Contributors: ratulhasan
Version: 1.0.0
Tags: email marketing, email automation, funnel builder, WordPress email marketing, email list management
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Sync WordPress users, WooCommerce customers & comment authors to EmailFunnelAI automatically.

== Description ==

**EmailFunnelAI** is the most powerful email marketing plugin for the [EmailFunnelAI](https://emailfunnel.ai) platform. Automatically sync contacts from WordPress users, comment authors, and WooCommerce orders, then launch AI-driven campaigns, funnels, and forms.

Whether you're running an eCommerce store, a membership site, or a content blog, EmailFunnelAI bridges the gap between your WordPress audience and professional email marketing automation.

=== Why EmailFunnelAI for WordPress? ===

Most email marketing plugins require manual exports, CSV uploads, or expensive third-party Zapier connections. EmailFunnelAI syncs your contacts in **real time** — automatically and intelligently — so your lists are always up to date.

=== Key Features ===

* 🔄 **Real-Time Contact Sync** — Automatically sync WordPress users, WooCommerce customers, and comment authors to your EmailFunnelAI contact lists the moment they interact with your site.
* 🔐 **Single Sign-On (SSO)** — Access the full EmailFunnelAI platform instantly from your WordPress admin panel with one click — no separate login needed.
* 📊 **Built-In Analytics Dashboard** — Monitor funnel performance, campaign results, and form conversions directly inside WordPress — no tab-switching required.
* 📋 **List Management** — Create, organize, and manage your email contact lists without leaving WordPress.
* 🗂️ **Custom Field Mapping** — Map any WordPress or WooCommerce field (name, role, order value, etc.) to your EmailFunnelAI contact fields for hyper-personalized campaigns.
* 🏷️ **Auto-Tagging** — Automatically tag contacts based on their WordPress role, purchase history, form submissions, or page activity for laser-precise segmentation.

=== Perfect For ===

* **WooCommerce stores** — Sync buyers and abandoned cart leads automatically.
* **Membership sites** — Segment contacts by user role or subscription level.
* **Blogs & content sites** — Capture and nurture comment authors and newsletter subscribers.
* **Marketing agencies** — Manage client contact lists and funnels at scale.

=== How It Works ===

1. Install and activate the plugin.
2. Complete the 3-step setup wizard to connect your WordPress site to your EmailFunnelAI account.
3. Configure sync rules, field mapping, and auto-tagging.
4. Your contacts sync automatically — in real time, every time.

=== Requirements ===

* WordPress 6.0 or higher
* PHP 8.2 or higher
* An active [EmailFunnelAI](https://emailfunnel.ai) account
* WooCommerce (optional, for order-based contact sync)

== Installation ==

**Option 1 — WordPress Plugin Directory (Recommended)**

1. Go to **Plugins <span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji">→</span></span></span></span></span></span></span> Add New** in your WordPress admin.
2. Search for **EmailFunnelAI**.
3. Click **Install Now**, then **Activate**.
4. Follow the 3-step setup wizard to connect your account.

**Option 2 — Manual Upload**

1. Download the plugin `.zip` file.
2. Go to **Plugins <span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji">→</span></span></span></span></span></span></span> Add New <span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji"><span aria-hidden="true" class="wp-exclude-emoji">→</span></span></span></span></span></span></span> Upload Plugin**.
3. Upload the `.zip` file and click **Install Now**.
4. Activate the plugin and complete the setup wizard.

**Option 3 — FTP**

1. Upload the `email-funnel-ai` folder to `/wp-content/plugins/`.
2. Activate via the WordPress **Plugins** screen.
3. Follow the setup wizard to link your EmailFunnelAI account.

== Frequently Asked Questions ==

= Do I need an EmailFunnelAI account to use this plugin? =
Yes. This plugin connects your WordPress site to the [EmailFunnelAI](https://emailfunnel.ai) platform. You'll need an active account to sync contacts and access analytics.

= Does this plugin work with WooCommerce? =
Yes! EmailFunnelAI automatically syncs WooCommerce customers and order data to your contact lists, enabling powerful eCommerce email automation.

= Is contact sync real-time or scheduled? =
Contact sync happens in real time. The moment a user registers, places an order, or leaves a comment, their data is pushed to your EmailFunnelAI contact list.

= Can I control which contacts get synced? =
Yes. You can configure sync rules, field mapping, and auto-tagging to precisely control which contacts are synced and how they are categorized.

= Is Single Sign-On (SSO) secure? =
Yes. SSO uses encrypted token-based authentication to give you seamless, secure access from WordPress to the EmailFunnelAI platform.

== Screenshots ==

1. **Setup Wizard** — Connect your EmailFunnelAI account in 3 simple steps.
2. **Analytics Dashboard** — View funnel, campaign, and form performance inside WordPress.
3. **Settings Panel** — Manage API credentials, sync rules, and field mappings.

== Changelog ==

= 1.0.0 =
* Initial release — contact sync, SSO authentication, analytics dashboard, list management, field mapping, and auto-tagging.

== Upgrade Notice ==

= 1.0.0 =
Welcome to EmailFunnelAI! This is the initial release. Install and complete the setup wizard to start syncing your WordPress contacts automatically.
