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.
Installation
Note: There will be NO settings page.
For an automatic installation through WordPress:
- Go to the ’Add New’ plugins screen in your WordPress admin area
- Search for ’Public Post Preview’
- Click ’Install Now’ and activate the plugin
For a manual installation via FTP:
- Upload the
public-post-preview
directory to the/wp-content/plugins/
directory - Activate the plugin through the ’Plugins’ screen in your WordPress admin area
To upload the plugin through WordPress, instead of FTP:
- Upload the downloaded zip file on the ’Add New’ plugins screen (see the ’Upload’ tab) in your WordPress admin area and activate.
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.
-
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.
-
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 60 * 60 * 24 * 5; // 5 days }
Alternativt kan du använda Public Post Preview Configurator.
Recensioner
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 18 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.9.2 (2020-10-03):
- Fixes saving of preview status without a previous Ajax request.
2.9.1 (2020-07-25):
- Improve HTTP status codes for expired/invalid preview links.
2.9.0 (2019-07-20):
- Requires WordPress 5.0
- Requires PHP 5.6
- Adds notice (as Snackbar if supported) when changing preview status in block editor.
- Fixes incorrect status message in classic editor.
- Fixes grammar in expired link notice. Props @garrett-eclipse.
- Improves internal checks to be more strict. Props @PatelUtkarsh.
- Removes deprecated i18n compatibility layer from Gutenberg plugin.
2.8.0 (2018-11-27):
- Lagt till stöd för WordPress 5.0 och den nya blockredigeraren.
2.7.0 (2018-09-14):
- Initialt stöd för Gutenberg.
- Blockera robotar för publika förhandsvisningar. Tack till @westonruter.
For more see CHANGELOG.md.