Discover, trust, install: FAIR 1.0 is here

Plugin Banner

Public Post Preview

by Dominik Schilling

Version: 3.0.1

Download
Description

Share a link to anonymous users to preview a draft of a post (or any other public post type) before it is published.

Have you ever been writing a post with the help of someone who does not have access to your site and needed to give them the ability to preview it before publishing? This plugin takes care of that by generating an URL with an expiring nonce that can be given out for public preview.

Previously this plugin was maintained by Matt Martz and was an idea of Jonathan Dingman. Photo by Annelies Geneyn.

Usage

  • To enable a public post preview check the box in the document settings. In the classic editor it’s in the “Publish” meta box.
  • The link will be displayed if the checkbox is checked, you can copy and share the link with your friends.
  • To disable a preview uncheck the box again.

For an installation through WordPress:

  1. Go to the ‘Add New’ plugins screen in your WordPress admin area
  2. Search for ‘Public Post Preview’
  3. Click ‘Install Now’ and activate the plugin

For a manual installation via FTP:

  1. Upload the public-post-preview directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ screen in your WordPress admin area

To upload the plugin through WordPress, instead of FTP:

  1. Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.
  1. Block Editor

    Block Editor

  2. Classic Editor

    Classic Editor

I can’t find the option for preview links. Where is it?

The checkbox is only available for non-published posts and once a post was saved as a draft.

After some time the preview link returns the message “The link has been expired!”. Why?

The plugin generates an URL with an expiring nonce. By default a link “lives” 48 hours. After 48 hours the link is expired and you need to copy and share a new link which is automatically generated on the same place under the editor.

48 hours are not enough to me. Can I extend the nonce time?

Yes, of course. Go to Settings > Reading > Public Post Preview and increase the
Expiration Time setting. You can also use the filter ppp_nonce_life. Example for 5 days:

add_filter( 'ppp_nonce_life', 'my_nonce_life' );
function my_nonce_life() {
    return 5 * DAY_IN_SECONDS;
}

Note: The setting UI is not visible if the filter is used.

no longer working

By bbbstoked on February 18, 2025

Been using this plugin always then all of a sudden it stopped working..

Super handy in order to work with clients and third parties

By mcd (mariaclaradiez) on October 16, 2024

Super handy in order to work with clients and third parties.

No longer works

By Json Koning (minion08) on September 26, 2024

functionality is completely missing for me with the latest version of WP

A must have plugin

By Knut Sparhell (knutsp) on July 21, 2024

Works flawlessly.

It's an incredible plugin, exactly what I needed!

By Henry Douglas (henrydouglas) on May 5, 2024

It's an incredible plugin, exactly what I needed! Don't stop his development. I wish you much success!

Handy!

By Peter Ingersoll (Peter.Ingersoll) on February 7, 2024

Just used for a nice way for a client to approve new WooCommerce products. Easy-peasy.

Useful works great

By Will Skora (skorasaurus) on March 31, 2023

Useful; works great; have had it in production on websites for 2 years with no issues

Gread Plugin, but why isnt it thougt to the end?

By dosimo on March 29, 2023

I have been using this plugin for a very long time and like it. but I just don't understand why there is no setting where I can specify the validity period of the link. That would be so easy. Instead, I have to either manually mess around in the code or install a SEPARATE PLUGIN that does this really very simple job.

The plugin is really great, but apparently they just stopped at the crucial point. Really a great pity.

Why?

By Johnny (iida_wp) on November 20, 2022

This is a great plugin that should be officially incorporated into WordPress.

Great plugin

By hoseferrera on October 7, 2022

Helps me to share the preview before publish. Thanks

3.0.1 (2024-12-23):

  • Fix calculation of expiration time for preview nonce.

3.0.0 (2024-12-21):

  • Requires WordPress 6.5.
  • Requires PHP 8.0.
  • Add setting to increase the default expiration time (Settings > Reading > Public Post Preview).
  • Show icon for preview link in list tables next to the state.
  • Change interface in block editor to match latest editor design.
  • Update sidebar description to include the preview link.
  • Extend Preview dropdown for public preview in WordPress 6.7+.
  • Add Public Preview post list view. Props @rafaucau.

For more see CHANGELOG.md.

  • Version:Version: 3.0.1
  • Active installs:Active installs: 100K
  • Last updated:Last updated: 9 months ago
  • Requires:Requires: 6.5
  • Tested:Tested: 6.7.2
Average rating:4.5 out of 5 stars.
  • Number of ratings: 65 ratings
  • Number of ratings: 3 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 4 ratings
  • Number of ratings: 5 ratings
Back to top