=== Eatransform Copy Guard ===
Contributors: eatransform
Tags: copy, notification, content protection, clipboard, alert
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Detects text copying on any page of your WordPress site and sends email notifications. Supports immediate, daily, weekly, and monthly digest modes.

== Description ==

**Eatransform Copy Guard** monitors clipboard copy events across your entire WordPress site — including the homepage, archive pages, and single post pages — and sends email notifications containing the copied text, page URL, IP address, browser information, and referrer.

= Key features =

* Works on **all pages** (home, archives, single posts, custom post types, pages)
* **Four notification modes**: immediate, daily digest, weekly digest, monthly digest
* **Two notification email addresses** configurable from the settings screen
* Minimum character threshold to filter out accidental short copies
* Optional: skip notifications when a logged-in user copies
* Optional: fire a GA4 `copy_detected` event via `gtag()`
* No jQuery dependency — uses native browser APIs
* Follows WordPress coding standards (escaping, nonces, prefixes)

== Installation ==

1. Upload the `eatransform-copy-guard` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings → Eatransform Copy Guard** and configure your notification email addresses and preferred notification mode.

== Frequently Asked Questions ==

= Does this work on the homepage? =
Yes. Unlike similar plugins, Eatransform Copy Guard attaches the copy listener to the entire document, so it works on every page.

= What is digest mode? =
In daily, weekly, or monthly digest mode, copy events are stored and sent together in a single summary email at the scheduled interval — instead of one email per copy event.

= Can I notify two people at once? =
Yes. The settings screen has a primary and a secondary email field. Leave the secondary field blank to disable it.

= Does it require jQuery? =
No. The detection script uses the native Fetch API and `window.getSelection()`.

== Privacy ==

This plugin collects the following information from visitors when they copy text that meets the configured minimum length:

* Copied text
* Page URL and page title
* Referrer
* IP address
* Browser user agent
* Timestamp

This data is sent via email to the recipient address(es) configured in Settings → Eatransform Copy Guard. No data is transmitted to any third-party service.

Site owners using this plugin should update their site's privacy policy to disclose this collection to their visitors.

== Changelog ==

= 1.1.0 =
* Added digest notification modes: daily, weekly, and monthly.
* Notification mode selector added to the settings screen.
* Copy events are stored and batched when a digest mode is selected.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Adds daily, weekly, and monthly digest email modes. After upgrading, visit Settings → Eatransform Copy Guard to choose your preferred notification timing.
