by Pixy Puala on WordPress.org
Generate secure, expiring preview URLs for drafts with role/user restrictions. Compatible with FSE, Block Themes, and Classic Themes.

Editor meta box: generate, copy, revoke.
Why this plugin?
WordPress core preview links work well for editors, and Public Post Preview shares via anonymous nonces.
This plugin adds a missing middle ground: draft previews that are secured by authentication and access control
lists (ACLs) — role-based, user-specific, or per-email tokens — plus analytics and a one-click revoke-all.
Universal Compatibility
Works seamlessly with:
* Full Site Editing (FSE) themes
* Block themes (modern WordPress)
* Classic PHP-based themes
* All page builders including Elementor, WPBakery, Divi, etc.
* WooCommerce product drafts
* Any CSS framework including Tailwind CSS v4+
Key features
srpl_), sanitized, and aligned with WordPress coding standards.How it works
Each generated link has a unique token, TTL, and ACL:
When a link is visited, SRPL validates the token, expiry, and ACL, then renders the draft with your theme’s header/footer. Events are logged (when enabled) to a small custom table (wp_srpl_events) with hashed IP for privacy.
Privacy
hash_hmac(sha256, ip, wp_salt('auth')).Developer Friendly
Filters
srpl_supported_post_types – Modify post types that support preview linkssrpl_default_ttl_hours – Change default expiration time (in hours)srpl_force_ssl – Control whether previews are forced to use HTTPSsrpl_analytics_enabled – Enable or disable analytics collectionFunctions
LinkManager::create($post_id, $args) – Create a new preview linkLinkManager::revoke($link_id) – Revoke a specific linkLinkManager::revoke_all_for_post($post_id) – Revoke all links for a postLinkManager::find_by_token($token) – Find a link by its tokenDatabase Structure
This plugin is free software, licensed under the GPL v2 or later.