Public Post Preview

Beskrivning

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.

Tidigare underhölls detta tillägg av Matt Martz efter en idé av Jonathan Dingman. Tack till Hans Dinkelberg för hans foto.

Användning

  • To enable a public post preview check the box below the edit post box.
  • The link will be displayed if the checkbox is checked, just copy and share the link with your friends.
  • To disable a preview just uncheck the box.

Skärmdumpar

  • Redigera inläggssida

Installation

Obs: Det finns INGEN inställningssida.

För en automatisk installation via WordPress:

  1. Gå till sidan ”Lägg till tillägg” i din WordPress-adminpanel
  2. Sök efter ”Public Post Preview”
  3. Klicka på ”Installera nu” och aktivera tillägget

För en manuell installation via FTP:

  1. Ladda upp katalogen public-post-preview till katalogen /wp-content/plugins/
  2. Aktivera tillägget på sidan ”Tillägg” i din WordPress-adminpanel

För att ladda upp tillägget via WordPress istället för FTP:

  1. Ladda upp den nedladdade zip-filen på sidan ”Lägg till tillägg” i din WordPress-adminpanel (Notera fliken ”Ladda upp”) och aktivera.

Vanliga frågor

Jag hittar inte alternativet för förhandsvisningslänkar. Var är det?

Kryssrutan är endast tillgänglig för ej publicerade inlägg och först efter att inlägget sparats som utkast.

Efter en viss tid returnerar förhandsvisningslänken meddelandet ”Länken har löpt ut!”. Varför?

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.

För mig är 48 timmar inte tillräckligt. Går det att förlänga giltighetstiden för åtkomstkoden?

Visst kan du det. Det är bara att använda filtret ppp_nonce_life. Exempelvis för att sätta 5 dagar:

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

Alternativt kan du använda Public Post Preview Configurator.

Recensioner

7 februari 2024
Just used for a nice way for a client to approve new WooCommerce products. Easy-peasy.
29 mars 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.
20 november 2022
This is a great plugin that should be officially incorporated into WordPress.
12 augusti 2022
I like the plugin, a lot. But it could be SO MUCH better if you could just extend the 48 hours to let's say, a week or even two. Because let's face it, most of us use this tool for clients so that they can see the work, before approving it. The thing is that they receive the preview mail and aren't able to check the preview in such a short time period. Add weekend and different time zones to that, and it makes this plugin pretty much useless because you keep sending preview links back and forth over and over again. The short timeframe makes the plugin so much worse than it could be. I really don't understand this choice. Yes, there is code that you can manually add. But the whole point of a plugin is to stay away from manual coding. And yes, there is also another plugin that lets you extend the preview time. But that means another plugin to keep up-to-date, more drag on the server and increasing security risks. So please. You can make this plugin 90% better just by increasing the timeframe, or letting the user decide the timeframe.
Läs alla 72 betyg

Bidragsgivare och utvecklare

”Public Post Preview” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”Public Post Preview” har översatts till 24 språk. Tack till översättarna för deras bidrag.

Översätt ”Public Post Preview” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

2.10.0 (2022-11-19):

  • Kompatibilitet med WordPress 6.1.
  • Integrate with User Switching: Direct the user to the public preview of a post when they switch off from the post editing screen. Props @johnbillion.

2.9.3 (2021-03-12):

  • Kompatibilitet med WordPress 5.7.
  • Create a fresh preview URL when enabling public preview.
  • Add check for possibly undefined PHP ”superglobals”. Props @waviaei.

För mer, se CHANGELOG.md.