=== Exit Popup ===
Contributors: snehalpancholi
Tags: exit intent, popup, email capture, lead generation, newsletter
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Capture email leads with an exit-intent popup before visitors leave your site.

== Description ==

Exit Popup shows a configurable email capture popup when the user's cursor moves toward leaving the page. Configure the popup content, frequency, welcome emails, and view collected subscribers in the admin.

**Key features:**

* Exit-intent detection via mouse-leave event
* Optional name field alongside the email field
* Frequency control: once per session, once per day, or once per week (uses browser storage — no cookies)
* Welcome email sent automatically to new subscribers
* Admin notification email on each new subscription
* Configurable From Name and From Email for all outgoing mail
* Post-type restriction: show on all pages or limit to selected post types
* Built-in subscribers table with pagination, bulk delete, and CSV export
* Fully translatable (text domain: `exit-popup`)
* Lightweight: no jQuery, no external scripts

== Installation ==

1. Upload the `exit-popup` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** screen in WordPress
3. Go to **Settings > Exit Popup** to configure the popup content, frequency, and email settings
4. View collected leads under **Tools > Exit Popup Subscribers**

== Frequently Asked Questions ==

= Does it use cookies? =
No. The plugin uses `sessionStorage` and `localStorage` to track whether the popup has already been shown. No cookies are set.

= Can I limit the popup to specific post types? =
Yes. Under **Settings > Exit Popup > General**, select which post types the popup should appear on. Leave all unchecked to show on every public page.

= Will the popup show to logged-in admins? =
No. The popup is suppressed on admin-side pages. It will appear for logged-in non-admin users on the front end.

= Where are subscribers stored? =
In a custom database table `{prefix}exp_subscribers`. You can export all subscribers as a CSV from **Tools > Exit Popup Subscribers**.

= What happens to data when I uninstall the plugin? =
Uninstalling the plugin via the WordPress plugins screen deletes the `addlc_exp_settings` option and drops the subscribers table. This action is permanent.

== Screenshots ==

1. Exit popup modal as seen by visitors
2. Settings page — General and Popup Content sections
3. Settings page — Frequency and Email Settings sections
4. Subscribers list table with bulk delete and CSV export

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release — no upgrade steps required.
