=== Jeet Sanwal Image Permission Register ===
Contributors: jeetsanwal
Tags: media library, image permissions, image credits, license records, editorial workflow
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Private permission records and review dates for Media Library images. Free, minimal and ad-free.

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

== Description ==

Remember where an image came from and what permission information your team recorded. Keep creator/contact, credit wording, source URL, license terms, purchase/permission reference, evidence URL, review date and private notes alongside the Media Library image.

Open an image's Edit screen and use the Private image permission record panel, or visit Tools > Image permissions. A dedicated per-image form saves only the register record; the standard Media Library Update button remains unchanged.

The report reads candidate images in stable ID batches: at most 25 records plus one unfiltered lookahead ID. It checks image edit permission before reading permission records, then searches titles and recorded creator, credit, terms and reference inside that batch. Recorded-status, missing-information and due-date filters also apply inside the current batch only. Notes and URLs are deliberately excluded from search. There is no full-catalog match count. Continue through Next even if no rows match or candidates are restricted; its availability depends only on the unfiltered image list, never on private matching metadata. Live insertions/deletions can shift paging. Review dates use the WordPress site timezone and include today. There are no email reminders, background scans or automatic expiry actions.

The Today through next 30 days filter includes dates from the current site date through 30 calendar days later, including both endpoints. Past and blank dates are excluded. Like other report filters, it is checked only after image-edit permission inside the current candidate batch. No background job, reminder or automatic expiry is added.

Recorded statuses are Unconfirmed, Own work (recorded), Licence recorded, Permission recorded and Restriction / do not use. These describe your own records. The plugin does not verify ownership, a license's authenticity, permission scope or legal compliance. Missing basic information means unconfirmed status, missing creator/contact or missing recorded terms. Completing these fields does not grant permission or legal clearance.

**Private administration**

Only users with manage_options and edit_post access to the image can read or edit its record through this plugin. Records are protected attachment metadata, not registered for REST exposure. A REST response filter removes the plugin's known private keys from ordinary attachment responses if another integration includes them as metadata. No permission fields, credits, ALT changes or frontend assets are automatically output.

Database backups, site exports and third-party administrative tools may still contain this metadata. This plugin is not a private document vault. Images and linked source/evidence files retain their existing access rules; URLs may be public. Do not enter passwords, signed URLs or confidential documents. Failed form input is retained in a private per-user database transient for at most two minutes to help recover rejected text.

**Small and deliberate**

* Media Library image records only; no WooCommerce requirement.
* One explicit, nonce-protected record save at a time.
* Stale-version checks prevent an older form overwriting a newer plugin save.
* Atomic database claims serialize this plugin's saves per image.
* With optional installation reports off, no external requests, rights-verification service, tracking, signup, ads or paid tier.
* No automatic file changes, frontend credits, ALT changes or content rewrites.
* Free for personal and client websites under GPL-2.0-or-later.

Self-hosted releases are available from https://jeetsanwal.in/tools/jeet-image-permission-register. Updates use manual ZIP replacement; no automatic update service is bundled.

== Installation ==

1. Upload the installable jeet-image-permission-register ZIP through Plugins > Add New > Upload Plugin.
2. Activate Jeet Sanwal Image Permission Register.
3. As an administrator, open Tools > Image permissions.
4. Open an image's Permission record, fill in what you know and click Save permission record.
5. Use status, missing information, review-due and search filters inside each 25-candidate batch. Continue with Next even after an empty filtered batch.

Alternatively open Media > Library > Edit image and click Edit permission record in its private permission panel. This panel appears on the full Edit Media screen, not the grid attachment-details modal.

== Frequently Asked Questions ==

= Does this establish that an image can legally be used? =

No. It stores the information you enter, without verifying rights or interpreting license terms. Check the actual agreement and your intended use separately.

= Does a complete record mean permission is approved? =

No. The missing-information filter only checks for a recorded status other than Unconfirmed, a creator/contact and recorded terms. It can also include a recorded restriction; it is not a permission approval check.

= Are my evidence files private? =

No access rules are changed. This stores optional HTTP(S) links and plain-text references, without uploading, downloading, protecting or checking the linked files. Existing Media Library files often have public URLs.

= Will image credits appear on the website? =

No. Credit wording stays in this private register. ALT text, captions, public content and media files remain unchanged.

= Can editors use the register? =

The interface requires manage_options and edit_post access to the image. Standard administrators qualify; standard editors and subscribers do not. Custom-role and multisite restrictions are respected by WordPress capabilities.

= Does it check all images on the internet or in my theme? =

No. It lists image attachment records in this site's Media Library, excluding trash. Remote-only images in content, theme assets and files that are not attachment records are outside scope.

= What happens if two people save the same record? =

Plugin saves are serialized per image and compare the opened version with the current stored record. A stale form is rejected; the latest saved form is shown with the rejected input available briefly for comparison. Imports and other plugins that write these private metadata keys directly are outside that save protocol.

= Is there a review notification or automatic expiry? =

No. The report highlights review dates on or before today in the WordPress site timezone. It does not send messages, remove images or decide that a license has expired.

= What is retained when I uninstall? =

Owner-entered attachment metadata remains so a reinstall can recover the register. Clear fields and save an image record before uninstalling if you want to remove its entered text. A trusted database export or site tool may be used for complete metadata removal. Failed-input flashes and interrupted lock claims have two-minute expiry/reclaim windows. No media files are removed.

== Privacy ==

With optional installation reports off, no external service, telemetry, account or analytics is used. All records stay in your WordPress database. There are no plugin emails or frontend permission outputs. Protected metadata and temporary validation flashes can be included in database backups and site-level exports; do not use them to store secrets.

= Why are matching images not all shown after filtering? =
All filters are intentionally local to the current batch of at most 25 candidate image IDs. Edit permission is checked before a private record is read or filtered. Continue through Next even if a batch is empty. Counts describe permitted records and matches in this batch, not the catalog or restricted images.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-image-permission-register . 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.1.1, 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.1.1 =
* Updated the product display name to Jeet Sanwal Image Permission Register 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.1.0 =
* Added an upcoming-review filter covering today through the next 30 calendar days within each permitted image batch.

= 1.0.3 =
* 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.2 =
* 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.1 =
* Rechecked private image records, object permissions, stale-save handling and batch-local search; refreshed release metadata.

= 1.0.0 =
* Initial release: private image permission records, dedicated safe form, Media Library edit panel, searchable paginated report, recorded-status and review filters.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Make a normal site backup before installing or replacing plugin files.
