Enables you to give a link to anonymous users for public preview 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 blog and needed to give them the ability to preview it before publishing?
This plugin takes care of that by generating a URL with an expiring nonce that can be given out for public preview.
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. You can use the filter ppp_nonce_life.
Example for 5 days:
add_filter( 'ppp_nonce_life', 'my_nonce_life' );
function my_nonce_life() {
return 60 * 60 * 24 * 5; // 5 days
}
Thanks to Hans Dinkelberg for his photo.

Eure Meinungen
I recently installed your Public Post Preview plugin but when I shared the link with someone there was a message that said “expired”. How do I make the link available for a longer period of time? What is the default time frame before it shows as expired? Looks like a great plug in if we can get it to work properly.
Thank you,
Halle Eavelyn
By default the link is available for 24 hours. It based on the WordPress Nonces API and exists for security reasons.
If a link (the nonce code) has been expired you can copy the link again.
If you really want to extend the time to can use the filter in
wp_nonce_tick().For example:
add_filter( 'nonce_life', 'ds_nonce_life' ); function ds_nonce_life( $seconds ) { return 60 * 60 * 24 * 50; // 50 days }I am running WordPress 3.4.1 and Public Post Preview 2.0.1. The preview links are not working. If I am still logged into my account they work, but if I am logged out (or for other non-registered users) there is a 404 Not Found error. Any ideas on what is going on or how I can fix it? Thanks.
-Marybeth.
I’m having the same problem as Marybeth Feutz. Thanks in advance for your help.
Hey,
could you please test the dev version and check if the problem still exists?
http://downloads.wordpress.org/plugin/public-post-preview.zip
Since the update yesterday links are no longer working and I get “The link has been expired!” and the formatting of the website is broken on that page. This was working quite well before yesterday’s update.
I would like to say that im glad that this plugin has been picked back up again and is being updated. One feature that I miss from previous verisons in the ability to right click the link and then click Send Link. Is it possible to reimplement this feature?
That was not a feature of the plugin, more a feature of your browser. Since the link is now in a textbox the browser cannot provide this feature anymore.
Currently there is no plan to restore it as a link. But maybe I can add a small linked icon after the textbox. The browser should detected this too.
I went ahead and changed the code in the my installation to the following for lines 169-172
<a href="ID ) ); ?>”>ID ) ); ?>
Well that didn’t work. I just added the <a> tag around the link and placed the php for the link in the href.
I just installed it and whilst it works, my post has a border around it. Looking at the source its a div titled error. I think WordPress notices that you’re trying to view a unpublished post and tries to put an error around it
I found the error. It puts this at the bottom of the page:
http://pastebin.com/peG46tpD
Thanks. It’s fixed in version 2.2.1.
“After 48 hours the link is expired”
This has to be the most bizarre, unhelpful, and annoying “default” behavior of any plug-in I’ve ever seen. Why not just remove that feature?
i have installed the Public Post Preview and activated it. I do not see where the checkbox is to enable the actual link.
I have screenshots of what I am experiencing if you send me an email address.
thanks,
bill
I have updated the screenshot. The checkbox will be visible in the Publish metabox after the post is saved once.
Really great plugin – I’ve been relying on it for a couple years now, fantastic.
Thanks Dominik!