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.

Usage

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

스크린샷

  • Edit Posts Page

설치

Note: There will be NO settings page.

워드 프레스를 통해 자동 설치 :

  1. 당신의 워드 프레스 관리자 영역에서 ‘추가 새로운’플러그인 화면으로 이동
  2. Search for ‘Public Post Preview’
  3. ‘지금 설치’를 클릭하고 플러그인을 활성화

FTP를 통해 수동 설치 :

  1. Upload the public-post-preview directory to the /wp-content/plugins/ directory
  2. 당신의 워드 프레스 관리자 영역에서 ‘플러그인’화면을 통해 플러그인을 활성화

대신 FTP의, 워드 프레스를 통해 플러그인을 업로드하려면 :

  1. 당신의 워드 프레스 관리자 영역에서 ‘추가 새로운’플러그인 화면 ( ‘업로드’탭 참조)에 다운로드 한 zip 파일을 업로드하고 활성화합니다.

FAQ

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

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

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?

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
}

Or use the Public Post Preview Configurator.

후기

2019년 10월 22일
Just found this 'public post preview' plugin a couple months ago, and every time i share a draft with it i'm just so tickled, and glad i found it. It is so useful, and easy. Thank you! Small note: I am freezing it at version 2.6.0, because as i understand it, there will be Gutenberg code included after that version, which i am massively uninterested in (am freezing all my sites at WordPress 4.9, and moving them to ClassicPress). (Including this note to satisfy the "help others" directive, not to diss WordPress or Gutenberg -- i am just going in a different direction, in this Wonderful Wide Web World of possibilities!)
2019년 6월 25일
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.
2019년 4월 10일
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.
2019년 2월 22일
Please resolve this issue. This plugin is not working with Classic Editor (https://wordpress.org/plugins/classic-editor/) in wordpress 5.0.3 Version.
Read all 50 reviews

Contributors & Developers

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

Contributors

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

Translate “Public Post Preview” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by 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.