=== Jeet Sanwal Approved Page Tracker ===
Contributors: jeetsanwal
Tags: page approval, editorial workflow, content review, approvals
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Private manual approvals for saved posts/pages, with change detection and revocation. Free and ad-free.

Created by Jeet Sanwal — https://jeetsanwal.in

== Description ==

Give “yes, this page is approved” a small place to live. Record a manual approval or revocation against a saved WordPress post or page, together with the acting user's ID, UTC decision time and private decision note.

An approval stores a SHA-256 fingerprint bound to the post ID/type and the exact saved title, content, excerpt, slug and publication status. Changes to these fields display Changed — review again. An older open approval form is rejected if either tracked content or its private approval record changed. No content snapshot or decision history is stored: the latest decision replaces the previous record, and restoring every tracked field can match the old approved fingerprint again.

This is a small editorial record, not an approval gate or signature. It does not publish, unpublish, lock, certify or change content. Unsaved edits, password/author settings, categories/tags, custom fields, builder metadata, linked attachments, menus, templates, themes and dynamic block output are outside the hash. Review the rendered page separately when those matter. Unsupported custom post types, revisions, trash and auto-drafts are excluded.

Only users with manage_options and edit_post access to the individual post/page can use this plugin's private records. Standard administrators usually qualify; ordinary editors do not. Custom-role and multisite restrictions still apply. Native editor panels are read-only links to dedicated Tools forms, so editor Update/Publish controls are unchanged.

Reports read at most 25 unfiltered post/page candidate IDs plus one lookahead, newest ID first. Individual edit permission is checked before reading private metadata or filtering titles/state. Every title and state filter applies inside the current candidate batch only. There is no full-catalog matching total. Next follows the unfiltered candidate list, so continue even when a filtered batch is empty. Live insertions/deletions can shift offset paging. At most 100,000 batches can be addressed.

Plugin saves require POST, an object-specific nonce, current capabilities, a current opened record token and an atomic SQL ownership claim. Latest post and metadata caches are refreshed after the claim. Failed writes are checked by reading the stored record back. These checks serialize this plugin's own saves; other tools editing metadata directly are outside that protocol. Interrupted ownership claims can be reclaimed after two minutes.

Protected metadata is not registered for public REST. A response filter also removes this plugin's record key from normal post/page REST responses if another integration adds it. Database backups, exports, trusted administrative tools and other plugins can still contain the records. Do not enter secrets. Failed form input may remain in a private per-user database transient for up to two minutes for comparison; a failed confirmation can still mean a record was stored or changed, so inspect the latest displayed record before retrying.

With optional installation reports off, records remain after uninstall so reinstalling can recover them. No frontend assets, badges or credits are added. No external requests, notifications, telemetry, signup, advertisements, paid tier or WooCommerce dependency. Self-hosted updates use manual ZIP replacement.

== Installation ==

1. Open Tools > Page approvals as an administrator.
2. Use Open record for a saved post or page, or follow the private native editor panel after saving your editor changes.
3. Review the latest saved content in its editor and rendered page, then choose Approve saved version with an optional private note.
4. Use Changed, Not yet approved or Revoked filters within each 25-candidate batch. Reopen and approve the current saved version deliberately, or revoke approval.

== Frequently Asked Questions ==

= What exactly counts as a tracked change? =

The exact saved title, content, excerpt, slug and publication status, bound to the post ID/type. The hash does not cover custom fields, builders that store layout in metadata, themes, dynamic output, attachments, passwords, author settings or taxonomy.

= Does approval stop someone publishing an unapproved page? =

No. It records a manual decision and detects differences in the tracked saved fields. It does not gate publishing, sign content or certify its quality.

= Is an approval history or content snapshot kept? =

No. Only the latest private decision, fingerprint, acting user ID, UTC time and note are stored. If every tracked field is restored exactly, the old approved fingerprint can match again.

= Can an old open form approve a newer saved edit? =

The opened token includes both the record and tracked saved content. A changed token is rejected after current caches are refreshed under the plugin save claim. Saves made outside this plugin can still occur concurrently; state is checked again after storing approval.

= Why can a filtered batch be empty while Next is available? =

Title and private-state filters apply only after permission checks inside the current 25-candidate batch. Continue to later unfiltered batches; no full-catalog private match count is exposed.

= Are private records removed on uninstall? =

No. They remain in protected post metadata for recovery after reinstall. Use a trusted database tool if complete removal is required; no content is deleted.

= Are these tools free on client websites? =

With optional installation reports off, yes. GPL-2.0-or-later with no signup, ads, telemetry, paid tier or public credits. Install updates manually with the self-hosted ZIP from https://jeetsanwal.in/tools/jeet-approved-page-tracker.

== Privacy ==

With optional installation reports off, all records stay in the WordPress database. Protected metadata, lock claims and temporary failed-input flashes can be included in backups or site-level exports. Other plugins and administrators can access the database. No external service or frontend record output is bundled.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-approved-page-tracker . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.3, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.3 =
* Updated the product display name to Jeet Sanwal Approved Page Tracker and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.2 =
* Standardized interface wording to US English without changing stored field keys or permissions.
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.1 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.0 =

* First release with private capability-checked records, bounded batch reports, read-only editor panels and dedicated stale-protected forms.

== Upgrade Notice ==

= 1.0.0 =

First standalone release. Back up your site before installation or manual ZIP replacement.
