=== Simple Post Preview & Review ===
Contributors:
Tags: preview, review, approval, feedback, client
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Share secure preview links, collect client feedback and approvals, receive edits - all without WordPress login.

== Description ==

**Simple Post Preview & Review** is the complete solution for client content review and approval workflows. Share unpublished content with clients, collect feedback and approvals, receive client edits, and manage the entire review process - all without giving clients access to your WordPress admin area.

= Key Features =

* **Secure Preview Links**: Generate cryptographically secure, unique preview links for any post, page, or custom post type
* **No WordPress Login Required**: Clients can review content and provide feedback without creating an account
* **Review & Approval System**: Built-in feedback mechanism with approve/request changes options
* **Client Editing**: Clients can submit edited versions of title and content for your review
* **Approval Workflow**: Review client edits with side-by-side diff view before applying changes
* **Feedback History**: Track all reviews, approvals, and decisions with timestamps
* **Automatic Data Cleanup**: Schedule automatic cleanup of old data or manually clean as needed
* **Rate Limiting**: Protect against spam with configurable rate limits
* **Security First**: Links are hashed in the database, include noindex/nofollow headers, and are non-cacheable
* **Privacy Conscious**: Minimal fingerprinting for rate limiting
* **Easy to Use**: Simple metabox in the post editor with one-click link generation
* **Dashboard Overview**: Centralized view of all active preview links and their approval status
* **Customizable**: Configure which post types support preview links
* **Developer Friendly**: Clean, documented code following WordPress coding standards

= Perfect For =

* Agencies sharing work with clients for approval
* Publishers getting editorial feedback
* Content teams collaborating with external reviewers
* Anyone who needs to share unpublished content securely

= How It Works =

1. Edit any post, page, or custom post type
2. Click "Generate Preview Link" in the Simple Post Preview metabox
3. Copy and share the secure link with your reviewer
4. They can view the content and provide feedback without logging in
5. See all feedback and approval status directly in the WordPress editor

= Security Features =

* Tokens are hashed using SHA-256 before storage
* High-entropy random token generation (64 characters)
* Preview pages include X-Robots-Tag: noindex, nofollow
* Cache-Control headers prevent caching of preview content
* Rate limiting prevents abuse
* Easy token revocation/regeneration

= Coming Soon (Premium) =

* Approval gates (block publication until approved)
* Multiple reviewers with approval rules
* Email notifications
* Link expiration
* Editing/suggestions from reviewers
* Watermarks
* Slack/Teams integrations

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Navigate to Plugins → Add New
3. Search for "Simple Post Preview"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Navigate to Plugins → Add New → Upload Plugin
4. Choose the ZIP file and click "Install Now"
5. Click "Activate Plugin"

= After Activation =

1. Go to Settings → Post Preview to configure options
2. Select which post types should support preview links
3. Configure rate limiting settings
4. Customize the preview banner text
5. Start creating preview links from any post/page editor!

== Frequently Asked Questions ==

= Who can generate preview links? =

Any user with the capability to edit posts can generate preview links for their content.

= Are preview links permanent? =

Preview links remain active until you disable or regenerate them. In the MVP version, links don't expire automatically, but you can disable them at any time.

= Can I use this with custom post types? =

Yes! Any publicly queryable custom post type can be enabled in Settings → Post Preview.

= Is this secure? =

Yes. Tokens are cryptographically secure (64 characters), hashed before storage, and preview pages include security headers to prevent indexing and caching.

= Can reviewers edit the content? =

No. In the MVP version, reviewers can only view content and provide feedback. Editing capabilities are planned for the premium version.

= What happens if I regenerate a link? =

The old link will immediately stop working, and a new secure link will be generated.

= Does this work with page builders? =

Yes! Simple Post Preview works with any page builder including Gutenberg, Elementor, Divi, WPBakery, and others.

= Can I track who submitted feedback? =

The plugin stores a privacy-safe fingerprint (hash of IP + user agent) to enable rate limiting, but doesn't collect personal information. All feedback is anonymous.

= What if someone submits spam feedback? =

Rate limiting is built-in. By default, reviewers can only submit 5 feedback entries per hour. You can adjust this in settings.

== Screenshots ==

1. Post editor metabox - Generate preview links, view approval status, and manage feedback
2. Dashboard overview - Centralized view of all active preview links and their status
3. Public preview page - Secure preview with feedback form and approve/request changes options
4. Client edit mode - Clients can submit edited versions of content with TinyMCE editor
5. Review client edits - Side-by-side diff view to review and apply client submissions
6. Settings page - Configure post types, rate limiting, token visibility, and cleanup options

== Changelog ==

= 1.0.0 =
* Initial release
* Secure token generation and validation
* Admin metabox for link management
* Public preview rendering with security headers
* Feedback/approval system
* Rate limiting
* Settings page
* Support for posts, pages, and custom post types
* Internationalization ready

== Upgrade Notice ==

= 1.0.0 =
Initial release of Simple Post Preview & Review. Complete client review workflow with preview links, feedback collection, approval management, and automatic data cleanup!

== Privacy Policy ==

Simple Post Preview & Review is designed with privacy in mind:

* No personal data is collected from reviewers
* A non-identifying fingerprint (hash) is used for rate limiting only
* No tracking cookies are used
* No data is sent to external services
* All data stays on your WordPress installation

== Support ==

For support, feature requests, or bug reports, please visit the [WordPress.org support forums](https://wordpress.org/support/plugin/simple-post-preview-review/).

== Credits ==

Developed with ❤️ for the WordPress community.
