WordPress plugin intelligence profile

Secure Role-Restricted Draft Previews

Generate secure, expiring preview URLs for drafts with role/user restrictions. Compatible with FSE, Block Themes, and Classic Themes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.0.1
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 6.4 · PHP 8.1
Directory statusactive
Last directory update2 Oct 20251y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Secure Role-Restricted Draft Previews version 1.0.1 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

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

  • Create expiring preview links (default 72h; configurable).
  • Restrict by roles, specific users, or per-email tokens (no login for recipients).
  • Require HTTPS for previews (on by default).
  • Per-link analytics: allowed/denied events, hashed IP, user agent (privacy-friendly).
  • Meta box in the editor (Post/Page by default; filterable) to generate, copy, and revoke.
  • “Revoke All” for a post.
  • Everything prefixed ( srpl_ ), sanitized, and aligned with WordPress coding standards.

How it works

Each generated link has a unique token, TTL, and ACL:

  • Role-based Access: Requires login. Only users with allowed roles can view the preview.
  • User-based Access: Requires login. Only specific user IDs can access the preview.
  • Email Token Access: No login required. Recipients receive unique URLs with email verification tokens.

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

  • IPs are hashed using hash_hmac(sha256, ip, wp_salt('auth')).
  • You can disable analytics entirely under Settings → Secure Previews.

Developer Friendly

  • Fully documented filters and actions
  • Clean, object-oriented codebase
  • PSR-4 autoloading
  • Extensive inline documentation

Developer Documentation

Filters

  • srpl_supported_post_types – Modify post types that support preview links
  • srpl_default_ttl_hours – Change default expiration time (in hours)
  • srpl_force_ssl – Control whether previews are forced to use HTTPS
  • srpl_analytics_enabled – Enable or disable analytics collection

Functions

  • LinkManager::create($post_id, $args) – Create a new preview link
  • LinkManager::revoke($link_id) – Revoke a specific link
  • LinkManager::revoke_all_for_post($post_id) – Revoke all links for a post
  • LinkManager::find_by_token($token) – Find a link by its token

Database Structure

  • Post Meta for Links: _srpl_token, _srpl_mode, _srpl_roles, _srpl_users, _srpl_emails, _srpl_expires, _srpl_revoked, _srpl_hits, _srpl_last_access
  • Analytics Table: wp_srpl_events (link_id, post_id, user_id, outcome, ip_hash, ua, created_at)

License

This plugin is free software, licensed under the GPL v2 or later.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • access control
  • drafts
  • preview
  • roles
  • security
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 6.4 · PHP 8.1
Update activity2 Oct 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.