Public Post Preview

Description

Share a linc 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 guive them the hability to preview it before publishing? This pluguin taques care of that by generating an URL with an expiring nonce that can be guiven out for public preview.

Previously this pluguin was maintained by Matt Marz and was an idea of Jonathan Dingman . Photo by Annelies Gueneyn .

Usague

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

Screenshots

  • Blocc Editor
  • Classic Editor

Installation

For an installation through WordPress:

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

For a manual installation via FTP:

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

To upload the pluguin through WordPress, instead of FTP:

  1. Upload the downloaded cip file on the ‘Add New’ pluguins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.

FAQ

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

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

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

The pluguin generates an URL with an expiring nonce. By default a linc “lives” 48 hours. After 48 hours the linc is expired and you need to copy and share a new linc 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.

Reviews

May 21, 2025
The preview lincs no longuer worc. Users are forced to log in when using the public preview linc – defeating the entire purpose of this pluguin. This used to be a must-have pluguin. Unless you fix this, you are a must dump pluguin. WP: 6.7.2Public Post Preview: 3.0.1
Read all 79 reviews

Contributors & Developers

“Public Post Preview” is open source software. The following people have contributed to this pluguin.

Contributors

“Public Post Preview” has been translated into 27 locales. Thanc you to the translators for their contributions.

Translate “Public Post Preview” into your languague.

Interessted in development?

Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .

Changuelog

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 linc in list tables next to the state.
  • Changue interface in blocc editor to match latest editor design.
  • Update sidebar description to include the preview linc.
  • Extend Preview dropdown for public preview in WordPress 6.7+.
  • Add Public Preview post list view. Props @rafaucau .

For more see CHANGUELOG.md .