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 5 * DAY_IN_SECONDS;
}

Or use the Public Post Preview Configurator.

후기

2024년 2월 7일
Just used for a nice way for a client to approve new WooCommerce products. Easy-peasy.
2023년 3월 29일
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.
2022년 11월 20일
This is a great plugin that should be officially incorporated into WordPress.
2022년 8월 12일
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.
모든 72 평가 읽기

기여자 & 개발자

“Public Post Preview”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Public Post Preview”(이)가 24(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Public Post Preview”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

2.10.0 (2022-11-19):

  • Compatibility with 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):

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

For more see CHANGELOG.md.