Public Post Preview

Περιγραφή

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. Thanks to Hans Dinkelberg for his photo.

Χρήση

  • 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.

Στιγμιότυπα

  • Επεξεργασία σελίδας Άρθρων

Εγκατάσταση

Note: There will be NO settings page.

For an automatic 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.

Συχνές Ερωτήσεις

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

Το πλαίσιο ελέγχου είναι διαθέσιμο μόνο για μη δημοσιευμένα άρθρα και εφόσον ένα άρθρο έχει αποθηκευτεί ως προσχέδιο.

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?

Ναι, φυσικά. Μπορείτε να χρησιμοποιήσετε το φίλτρο ppp_nonce_life. Παράδειγμα για 5 ημέρες:

add_filter( 'ppp_nonce_life', 'my_nonce_life' );
function my_nonce_life() {
    return 60 * 60 * 24 * 5; // 5 days
}

Ή χρησιμοποιήστε τον Διαμορφωτή Προεπισκόπησης Δημοσίων Άρθρων.

Κριτικές

Ιούνιος 25, 2019
I was trying to find a way to Share a Draft, but only found pointers to a dead plugin. I am not sure how I stumbled on this one but would like to suggest that you include the phrase "share a draft" somewhere in your description.
Απρίλιος 10, 2019
Does its job and is tunable by hooks. Moreovere, since the main class is made by static methods I had the opportunity of deregister hooks for my needs.
Φεβρουάριος 22, 2019
Please resolve this issue. This plugin is not working with Classic Editor (https://wordpress.org/plugins/classic-editor/) in wordpress 5.0.3 Version.
Ιούνιος 4, 2018
Have used this several times to show clients a preview of updates. It has always worked well for us! Thanks for a nice plugin!
Ανάγνωση όλων των 49 κριτικών

Συνεισφέροντες & Προγραμματιστές

“Public Post Preview” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

“Public Post Preview” έχει μεταφραστεί σε 17 γλώσσες. Thank you to the translators for their contributions.

Μεταφράστε το “Public Post Preview” στην γλώσσα σας.

Interested in development?

Περιηγηθείτε στον κώδικα , ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών μέσω RSS .

Σύνοψη αλλαγών

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):

  • Add support for WordPress 5.0 and the new block editor.

2.7.0 (2018-09-14):

  • Initial support for Gutenberg.
  • Block robots for public post previews. Props @westonruter.

For more see CHANGELOG.md.