=== Email Subscription Popup — Newsletter & GDPR Consent ===
Contributors: nik00726
Tags: newsletter, email subscription, popup, gutenberg block, mailchimp, GDPR, subscription form, email marketing, newsletter popup, widget
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.2.28
Stable tag: 1.2.28
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Grow your email list with a beautiful newsletter popup, Gutenberg block, widget and Mailchimp sync. GDPR ready. Free forever.

== Description ==

**Email Subscription Popup** is the easiest way to grow your email list in WordPress. Show a beautiful newsletter signup popup, embed a subscription form anywhere with the Gutenberg block or widget, and automatically sync new subscribers to Mailchimp — all for free.

> **Want more?** [Email Subscribe PRO](https://i13websolution.com/product/wordpress-newsletter-subscription-pro-plugin/) adds 6 stunning popup styles, ESP integrations (Mailchimp, Brevo, Kit, Klaviyo), full analytics dashboard, exit-intent trigger, unlimited subscribers and more.

= Why use Email Subscription Popup? =

* **Zero setup** — install, activate, done. Popup works immediately.
* **Gutenberg block** — drag and drop the subscription form anywhere in your pages, posts or templates.
* **Mailchimp sync** — automatically sync new subscribers to your Mailchimp audience (free: 100 syncs/month).
* **GDPR ready** — optional consent checkbox with customizable text and links.
* **Fully translatable** — all labels and messages are customizable.
* **Lightweight** — no bloat, fast loading.

= Free Features =

* 📧 Newsletter popup modal with customizable heading, subheading and button text
* 🧩 **Gutenberg block** — add subscription form to any page or post
* 🔌 **Mailchimp integration** — sync new subscribers automatically (100/month free)
* 🔒 **GDPR compliance** — optional agreement checkbox with custom text
* 📊 Basic analytics — subscriber count and growth overview
* 👥 Manage subscribers — view, search, delete, export
* 📨 Send mass email to all subscribers
* 🔇 Unsubscriber list management
* 🎨 Show/hide name field
* ⚙️ Flexible display — show on homepage only or all pages
* 🍪 Cookie control — set how long to wait before showing popup again
* 📱 Responsive design — works on all screen sizes
* 🌍 Translation ready (WPML compatible)
* 🔗 Custom link trigger — open popup on any button/link click
* 📦 WordPress widget support
* 🔐 WordPress user capabilities and roles support

= PRO Version Features =

Upgrade to [Email Subscribe PRO](https://i13websolution.com/product/wordpress-newsletter-subscription-pro-plugin/) for:

* 🎨 **9 popup styles** — Dark/Night, Minimal, Bold/Vibrant, Split Layout with image, Coupon Reveal, Slide-in Bar + 3 classic styles
* 📧 **4 ESP integrations** — Mailchimp, Brevo, Kit (ConvertKit), Klaviyo — unlimited syncs, double opt-in
* 📊 **Full analytics dashboard** — subscriber growth charts, date range picker, best day tracker, unsubscribe rate
* 🚀 **Exit-intent trigger** — show popup when visitor is about to leave
* ♾️ **Unlimited subscribers** — no monthly limits
* 📥 **Unlimited CSV import** — import thousands of subscribers at once
* 🎟️ **Coupon reveal popup** — show discount code after subscription
* 🖼️ **Split layout popup** — image on left, form on right with color bar
* 📢 **Slide-in notification bar** — bottom or top bar, less intrusive than a popup
* 📋 **Newsletter templates** — create reusable email templates
* ⏰ **Cron-based mass email** — send newsletters via WordPress cron
* 🔔 **Admin notifications** — get notified when someone subscribes
* ✅ **Activation email** — verify subscribers via email confirmation
* 🔍 **Advanced subscriber search** — filter by status, date, name
* 🗑️ **Mass delete** — bulk remove subscribers

[Get PRO →](https://i13websolution.com/product/wordpress-newsletter-subscription-pro-plugin/)

= How to use the Gutenberg Block =

1. Edit any page or post in the block editor
2. Click the **+** button to add a block
3. Search for **"Email Subscribe"**
4. Add the block — the subscription form appears instantly
5. Customize heading, labels, messages and GDPR checkbox in the block sidebar

= Mailchimp Setup =

1. Go to **Email Subscription → Mailchimp Sync**
2. Enter your Mailchimp API key and Audience List ID
3. Click **Test Connection** to verify
4. Enable sync — new subscribers will be automatically added to your Mailchimp audience

= Shortcode =

You can also embed the form using a shortcode:

`[print_email_subscribe_form]`

With custom parameters:
`[print_email_subscribe_form heading="Join our newsletter" shownamefield="1" show_agreement="1"]`

== Installation ==

1. Upload the `email-subscribe` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** menu in WordPress
3. Go to **Email Subscription** in the admin menu
4. Configure your popup settings and save
5. Visit your site — the popup will appear automatically!

= Quick Start =
* The setup wizard appears on first activation to guide you through configuration
* All text labels and messages are fully customizable
* Use the Gutenberg block to embed the form inline on any page

== Frequently Asked Questions ==

= Does this plugin work with the Gutenberg block editor? =
Yes! Version 1.2.28 adds a native Gutenberg block. Search for "Email Subscribe" in the block inserter.

= Is this plugin GDPR compliant? =
Yes. You can enable a consent checkbox with customizable text and links to your Terms of Service and Privacy Policy.

= Can I connect it to Mailchimp? =
Yes, the free version includes Mailchimp sync for up to 100 new subscribers per month. For unlimited syncs and additional ESPs (Brevo, Kit, Klaviyo), upgrade to PRO.

= Does the shortcode still work? =
Yes. The shortcode `[print_email_subscribe_form]` is still fully supported alongside the new Gutenberg block.

= How do I stop the popup from showing to the same user repeatedly? =
Use the **Cookie Time** setting — set the number of days before the popup shows again to the same visitor.

= Can I show the form on specific pages only? =
The popup can be set to show on the homepage only or all pages. For page-specific control, use the Gutenberg block to embed the form inline on specific pages.

= What happens when I reach the 500 subscriber limit? =
New subscribers will not be stored but existing subscribers continue to work normally. Upgrade to PRO for unlimited subscribers.

= Is the plugin translation ready? =
Yes, all labels and messages are translatable and compatible with WPML.

= How do I get support? =
Visit [i13websolution.com/contacts](https://www.i13websolution.com/contacts)

== Screenshots ==

1. Beautiful newsletter popup with customizable design
2. Admin settings — customize all labels, messages and display options
3. Gutenberg block — drag and drop subscription form anywhere
4. Mailchimp sync settings with connection test
5. Subscriber management — view, search, export and delete subscribers
6. Basic analytics — subscriber count and growth overview
7. PRO version — Split layout popup with image panel
8. PRO version — Coupon reveal popup showing discount code after subscription
9. PRO version — Slide-in notification bar (bottom of screen)
10. PRO version — Full analytics dashboard with growth chart
11. PRO version — ESP integrations (Mailchimp, Brevo, Kit, Klaviyo)
12. Onboarding wizard — quick setup on first install
13. Responsive design — works perfectly on mobile

== Changelog ==

= 1.2.28 =
* Added Gutenberg block — drag and drop subscription form anywhere in the block editor
* Added Mailchimp integration — sync new subscribers automatically (100/month free)
* Added onboarding wizard — guided setup on first install
* Added basic analytics dashboard — subscriber count and growth overview
* Added subscriber limit notice — alerts when approaching 500 subscriber limit
* Added PRO style previews — see all 9 popup styles with upgrade prompts
* Highlighted GDPR checkbox with badge for better discoverability
* Removed third-party advertisements from admin pages
* Improved admin UI with better upgrade path to PRO
* Updated menu icon to email icon for better recognition
* Fixed various PHP notices

= 1.2.27 =
* Fixed XSS Proof of Concept (PoC) vulnerability

= 1.2.26 =
* Fixed ShowNameField and show_agreement fields not working in shortcode

= 1.2.25 =
* Added newsletter popup setting to allow centering popup on scroll
* Tested with WordPress 6.8

= 1.2.24 =
* Fixed vulnerable SQL query

= 1.2.23 =
* Fixed Cross-Site Scripting vulnerability reported by Wordfence

= 1.2.22 =
* Added shortcode option to print newsletter subscribe form

= 1.2.21 =
* Fixed security vulnerability

= 1.2.20 =
* Fixed security vulnerability

= 1.2.19 =
* Fixed referer was not escaped

= 1.2.18 =
* Fixed CSS conflict
* Tested with WordPress 6.3

= 1.2.17 =
* Fixed vulnerability
* Tested with WordPress 6.2

= 1.2.16 =
* Compatible with WordPress 5.8

= 1.2.15 =
* Fixed undefined variable problem

= 1.2.14 =
* Fixed lightbox not working with jQuery 3.x

= 1.2.13 =
* Fixed character set problem

= 1.2.12 =
* Fixed nl2br problem
* Tested with WordPress 5.4

= 1.2.11 =
* Improved modal popup loading

= 1.2.10 =
* Fixed border issue in popup form
* Tested with WordPress 5.3

= 1.2.9 =
* Improved code to work even when jQuery loads in footer
* Tested with WordPress 5.2

= 1.2.8 =
* Added WordPress capabilities feature
* Tested with WordPress 5.1
* Improved pagination in subscribers list

= 1.2.7 =
* Improved admin UI
* Tested with WordPress 5.0

= 1.2.6 =
* Added additional CSS field in settings

= 1.2.5 =
* GDPR compliance — added consent checkbox
* Show/hide consent checkbox and name field

= 1.2.4 =
* Fixed unsubscribe message showing blank

= 1.2.3 =
* Added mass email to subscribers
* Added unsubscriber list
* Subscriber can unsubscribe from newsletter
* Plugin translation ready

= 1.2.2 =
* Fixed compatibility with other fancybox scripts

= 1.2.1 =
* Fixed class constructor notice in debug mode

= 1.2 =
* Security updates

= 1.0 =
* Initial stable release

== Upgrade Notice ==

= 1.2.28 =
Major update — adds Gutenberg block, Mailchimp integration, onboarding wizard and analytics. Recommended for all users.

= 1.2.27 =
Security fix — please update immediately.

= 1.2.10 =
Please clear your cache after updating.
