=== AgeSentry ===
Contributors: rakibuldev
Tags: age verification, adult content, popup, age gate, woocommerce
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an age verification popup with Yes/No and Date of Birth check for WooCommerce or adult sites.

== Description ==

**AgeSentry** is a powerful, lightweight, and heavily customizable WordPress plugin that allows you to add a modern age verification popup to your website. Ideal for websites selling age-restricted products like vaping supplies, alcohol, CBD, or adult content.

### Premium Key Features (100% Free)

* **Dynamic Minimum Age:** Set the required age to 18, 21, or any custom number.
* **SEO Friendly (Crawler Bypass):** Automatically detects Googlebot, Bing, etc., and hides the popup so your SEO ranking is never negatively impacted!
* **Multiple Verification Methods:** Choose between Yes/No Buttons, Date of Birth (Calendar), or Both.
* **Custom Color Picker:** Fully customize the background, buttons, and text colors from the backend to match your theme.
* **"Remember Me" Consent:** Let users opt-in to a 30-day cookie, or opt-out for a single-session cookie.
* **Bypass Logged-in Users:** Avoid annoying administrators by hiding the popup when logged in.
* **Modern UI:** Features a sleek glassmorphism aesthetic with smooth CSS animations.
* **Custom Logo Upload:** Use the native WordPress Media Uploader.
* **Redirect Underage Users:** Send failed verifications to a custom URL.
* **WooCommerce Compatible:** Works perfectly on all pages and is highly responsive for mobile devices.

### Use Cases

* Vape and E-Cigarette Shops
* Alcohol, Wine, and Spirits Stores
* CBD / Cannabis Dispensaries
* Adult Content Sites

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install it directly from the WordPress Plugin Repository.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings > Age Verification** to configure your popup.
4. Set your colors, text, logo, and choose the verification method.
5. Save changes and you are done!

== Frequently Asked Questions ==

= Does it work with WooCommerce? =
Yes, the plugin works perfectly on all pages, including WooCommerce shop, cart, and checkout pages.

= Will this popup hurt my SEO? =
No! Version 1.0.0 introduces a smart "Crawler Bypass" feature that prevents search engines (like Googlebot) from seeing the popup, ensuring your site gets indexed correctly.

= Can I change the age limit from 18 to 21? =
Yes! You can set a custom dynamic Minimum Age requirement directly in the General Settings tab.

= Does this plugin support translations? =

== Changelog ==

* Added client-side cookie detection to fix popup re-appearing on cached pages.
* Added a "Review us on WordPress" request widget to the settings page sidebar.
* Optimized plugin repository assets (changed banner format from PNG to JPG for better performance).
* Major UI Redesign: Added modern glassmorphism aesthetic and smooth CSS animations.
* Dynamic Minimum Age limit (e.g., 18, 21+).
* SEO Crawler Bypass (Googlebot friendly).
* Logged-in User Bypass.
* "Remember Me" checkbox for user cookie consent.
* Custom Color Pickers in the backend to match any theme.
* Replaced browser alerts with inline smooth error messages.
* Added native WordPress Media Uploader for the logo.
* Organized backend settings into clean navigational tabs.
* Tested up to WordPress 7.0 and requires PHP 7.4.
* Compatibility update for WordPress 7.0.
* Increased minimum PHP requirement to 7.4.
* Initial release.
* Added Yes/No verification.
* Added Date of Birth verification with Flatpickr.
* Customizable settings in WordPress admin.
* Cookie storage for verified users.