=== RMGCaptcha Math Guard - Math CAPTCHA for Login and WooCommerce ===
Contributors: ridhwanahsann
Tags: captcha, math captcha, spam protection, login security, woocommerce
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight math CAPTCHA and spam protection plugin for WordPress login, WooCommerce, and Contact Form 7 forms.

== Description ==

RMGCaptcha Math Guard adds a GDPR-friendly, math-based CAPTCHA to protect WordPress login, WooCommerce, and Contact Form 7 forms from spam, fake registrations, and brute-force attacks. No external services, no tracking, and fully WordPress.org compliant.

Features:

* WordPress login protection (captcha on wp-login.php)
* Contact Form 7 integration via [pmcMathcaptcha] / [pmcMathcaptcha*]
* WooCommerce login and registration protection
* Lightweight spam protection without Google reCAPTCHA or third-party tracking
* Configurable difficulty and operations (Addition/Subtraction/Multiplication/Random)
* Hide captcha for logged-in users
* Custom error message support
* Optional rate limiting and honeypot
* Failed login log + logged user list (admin pages)
* Translation-ready

== Installation ==

1. Upload the `rmgcaptcha-math-guard` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to Settings > RMGCaptcha Math Guard to configure.

== Frequently Asked Questions ==

= How do I add it to Contact Form 7? =
Use the form tag `[pmcMathcaptcha]` or `[pmcMathcaptcha*]` in your CF7 form.

= Does it work for logged-in users? =
You can hide CAPTCHA for logged-in users via the settings page.

= Does it keep logs? =
Yes. It provides separate admin pages for Logged User List and Failed Login Log with a clear button for each list.

== Screenshots ==

1. Settings page.
2. Logged User List.
3. Failed Login Log.

== Changelog ==

= 1.1.2 =
* Fix potential security issues and general code cleanup
* Enhance compatibility with the latest WordPress version
* Minor UI/UX improvements in admin settings
* Improve plugin initialization stability

= 1.1.1 =
* Add automatic version upgrade routine to safely merge settings for existing installs
* Fix subtraction questions so answers stay user-friendly and validation remains consistent
* Fix multiplication symbol rendering in generated math questions
* Add a quick Settings link on the Plugins screen

= 1.0.1 =
* Rename plugin to "RMGCaptcha Math Guard"
* Add rmgc_ prefix across classes, functions, option and transient keys
* Update text domain to `rmgcaptcha-math-guard`
* Update admin menu titles and slugs
* Replace translation template with languages/rmgcaptcha-math-guard.pot
* Update readme metadata and wording
* Keep existing nonces/CF7 tags for backward compatibility

= 1.0.0 =
* Initial release.
