=== Mathematical Captcha Applier ===
Contributors: samiur6688
Tags: captcha, math captcha, spam protection, form security, anti-spam
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Apply a simple mathematical captcha to specific buttons by providing their CSS class or ID to prevent spamming.

== Description ==
**Mathematical Captcha Applier** is a lightweight WordPress plugin that lets you easily apply a simple math-based captcha to form submit buttons on your website by specifying their CSS selector. Just provide a specific button's CSS selector, and the plugin will display a captcha prompt before the action is completed. This could help to prevent spam and unwanted bot activity.

**Features:**
- Add a mathematical captcha to form submit buttons (`<input type="submit">` or `<button type="submit">`) by specifying their CSS selector (ID or class).
- Attempts to protect forms from automated submissions.
- No external dependencies — lightweight and fast.
- Simple configuration via the WordPress dashboard.
- If JavaScript is disabled, this plugin will hide the selected buttons.

**How It Works:**
When a user clicks the protected button, a small popup will appear asking them to solve a basic math problem (e.g., `5 + 3 = ?`). If answered correctly, the action will proceed.

If JavaScript is disabled in the browser, the plugin hides the selected submit button.

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/mathematical-captcha-applier` directory, or install the plugin through the WordPress **Plugins** screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Settings > Mathematical Captcha Applier** to configure the buttons you want to protect.

== Frequently Asked Questions ==

= Does this work with all forms? =
Yes, as long as the submit button is either `<input type="submit">` or `<button type="submit">` and you specify its unique class or ID as the selector.

= Can I protect multiple buttons? =
Yes, you can specify multiple selectors in the settings.

= Does it require JavaScript? =
Yes, the captcha popup and validation rely on JavaScript.

= Is this plugin designed to handle all kinds of spamming threats? =
No. This plugin is not designed to handle all types of spamming threats. It attempts to stop spamming attempts by using a CSS and JS based method.

= Is it possible to include `input[type="submit"]` or `button[type="submit"]` as a selector? =
No. Only specific selectors based on **ID or class** are allowed. Global selectors like `input[type="submit"]` and `button[type="submit"]` are blocked.

== Changelog ==
= 1.0 =
* Initial release

= 1.0.1 =
* Updated "Tested up to" version.
* Improved plugin code to follow WordPress coding standards.
* Updated language file name.