=== Naimur Email OTP Verification for WooCommerce ===
Contributors: naimurrahmannahid
Donate link: https://buymeacoffee.com/naimurrahmannahid
Tags: woocommerce, otp, email verification, customer, security
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Short Description: Verify WooCommerce customer email addresses with a 6-digit OTP before account creation for secure and spam-free registrations.

== Description ==
**Naimur Email OTP Verification for WooCommerce** verifies customer email ownership using a One Time Password (OTP) before account creation. Optional Google reCAPTCHA, email logs, activity tracking, and a responsive OTP modal are included.

This plugin verifies users through a unique OTP sent to their email during:
- Login  
- Registration 

== Documentation ==

Full documentation for setup, usage, and customization is available here:  
👉 **https://naimurrahmannahid.com/naimur-otp-plugin/**

== Video Tutorial ==
[youtube https://youtu.be/AehMWNLxkVk?si=seExgoLRqORq1R48]

### 🔥 Key Features
- Email-Based OTP Verification  
- Instant OTP Delivery  
- OTP for Login, Register & Checkout  
- Smart OTP Input UI  
- Custom Email Templates  
- Secure & Anti-Spam Protection  

### Additional Features
- OTP expiry control  
- Resend button with countdown  
- AJAX-based OTP submit  
- Google reCAPTCHA v2  
- Custom error/success messages  
- Translation-ready  
- Developer-friendly hooks  

== External services ==

This plugin can optionally integrate with Google reCAPTCHA to protect the WooCommerce login and registration forms from automated abuse and spam.

When reCAPTCHA is enabled in the plugin settings and you configure a site key and secret key, the following data is sent to Google:

* The reCAPTCHA response token generated in the browser
* The IP address of the user
* Additional browser and usage information collected by the reCAPTCHA widget

This data is sent when the WooCommerce login or registration form is submitted in order to verify that the request is made by a human user.

Service provider:
* Google reCAPTCHA – provided by Google LLC
* Terms of Service: https://www.google.com/recaptcha/terms
* Privacy Policy: https://policies.google.com/privacy

== Source code ==

The JavaScript file `assets/js/main.js` is a compiled/optimized build used in production.

A human-readable source version of this script is bundled with the plugin under:

* `assets/src/js/main.js`

This file contains the original source code that can be viewed, studied and modified by developers.

== Screenshots ==
1. Settings
2. Email Template
3. Email Verification Logs
4. Template preview
5. Popup

This plugin is lightweight, fast, and works with any WooCommerce-compatible theme or builder.

== Frequently Asked Questions ==

= Does the plugin support custom email templates? =
Yes — you can fully customize the HTML email template including OTP placeholder, colors, subject, and branding.

= Can I enable OTP only for Login or only for Registration? =
Yes — each module can be enabled or disabled individually from the plugin settings.

= Does this plugin support SMTP? =
Yes — works with all SMTP plugins (WP Mail SMTP, FluentSMTP, Post SMTP, etc.)

= Is reCAPTCHA supported? =
Yes — Google reCAPTCHA v2 is supported to prevent bot-generated OTP requests.

= Does it slow down the site? =
No — the plugin is lightweight and optimized for speed.

== Changelog ==
= 1.1.5 =
* Text domain aligned with slug `naimur-email-otp-for-woocommerce`.
* Added nonce checks, escaping, sanitization and translators comments.
* reCAPTCHA mobile token capture improvements and safe debug logging.

== Upgrade Notice ==
*NA