=== Jeet Sanwal Handover Notes ===
Contributors: jeetsanwal
Tags: handover, client instructions, editorial workflow, private notes
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put private maintenance instructions next to the exact page, post or custom content that your client needs to update.

== Description ==

The page says "Contact us", but the phone number actually comes from a different settings screen. A shared banner needs a particular image size. A client remembers the last handover call differently.

Jeet Sanwal Handover Notes gives each page its own small set of instructions inside the WordPress editor. An administrator writes the instructions; permitted editors read them while they work.

* A heading and plain-text instructions, separate from the page content.
* A temporary checklist for the current editing session.
* An optional example screenshot from the Media Library.
* Up to eight labeled shortcuts to this site's wp-admin screens.
* A searchable instruction index at Tools > Handover notes, with a content-type filter.
* Settings for reader roles and supported content types.
* Compatible native metabox for the block editor and classic editor.
* Save instructions without publishing or updating the page content.
* A stale-edit check prevents one open editor from silently replacing newer instructions.

With optional installation reports off, all features are included. No signup, advertising, paid upgrade, external service, tracking or visitor-facing credit. Assets load only on the plugin's admin screens and the relevant editors.

== Installation ==

1. Upload the `jeet-handover-notes` folder to `/wp-content/plugins/`, or use Plugins > Add New > Upload Plugin with the installable ZIP.
2. Activate Jeet Sanwal Handover Notes.
3. Open Settings > Handover notes to choose content types and reader roles.
4. Edit a page or post as an administrator and open "Page handover notes".
5. Add the instructions and click "Save instructions". The standard Update/Publish button also saves them.

In newer block editors, open the "Meta Boxes" bar at the bottom of the editor first, then "Page handover notes". In the classic editor the instructions appear as a normal metabox.

== Frequently Asked Questions ==

= Who can write or read the instructions? =

Users with `manage_options` can maintain instructions, and must also be allowed to edit the individual page. Other selected roles can read instructions only for pages they can already edit. Editors and Authors are selected by default. Roles and existing WordPress capabilities are never changed.

= Are the instructions public? =

The text is stored as protected post metadata and is not registered in the REST API, added to page content, or printed on the public site. Site administrators and database/backup operators can access stored data. It is for operational instructions, not passwords or secrets.

= Is the optional screenshot private too? =

No. WordPress Media Library files normally have public URLs. Use a demo screenshot with no confidential information. This plugin does not add protection to uploaded files.

= Does clicking a shortcut grant extra access? =

No. The destination still checks the user's normal WordPress permissions. Only HTTP(S) links inside the same site's wp-admin area are accepted. External links and traversal paths are discarded.

= Do checklist ticks stay checked? =

No. They are a temporary aid for the current session, not a record of task completion. They reset on reload.

= What does search cover? =

The literal text filter checks instruction headings, bodies and checklists only after the current user's edit access is confirmed. The content-type filter narrows candidate IDs. Each batch considers 50 unfiltered note candidates, up to 1,000 batches; Next follows candidates rather than global matches. Permission filtering can leave a shorter or blank batch, so a blank batch does not rule out accessible notes elsewhere.

= Are notes included in post revisions or exports? =

They are separate from post content and are not restored by post revisions. A WordPress/database backup includes the metadata. A WordPress content export may include post metadata, so check exports before sharing them.

= What happens if I disable a content type or delete the plugin? =

Disabling a content type or the plugin hides its instructions without deleting them. Deleting plugin files also retains notes and settings to avoid losing the handover. To remove a note, clear its fields and save instructions before deletion. For complete cleanup, an administrator can remove the exact `_jeet_hn_note` and `_jeet_hn_search` post-meta keys and the `jeet_hn_settings` option using a database maintenance tool.

= Can this support custom post types? =

Yes. Content types with a native WordPress edit screen appear in settings. Internal reusable blocks, templates, navigation records and attachments are excluded. Compatibility with every third-party custom editor is not promised.

== Privacy ==

With optional installation reports off, the plugin sends no data to an external service and uses no cookies of its own. It stores each instruction's text, optional attachment ID, admin shortcuts, last update time and the administrator's user ID in the site's database. Selected reader roles and content types are stored as an option. No front-end output is added.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-handover-notes . 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.4, 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.4 =
* Updated the product display name to Jeet Sanwal Handover Notes 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.3 =
* 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 =
* Check edit access before filtering private instruction text; use bounded candidate batches without global search counts.
* Safely ignore non-post objects passed by alternative order editors to WordPress metabox hooks.

= 1.0.0 =
* First release: page-specific instructions, checklists, screenshots, admin shortcuts, private index and role visibility settings.
