Public Post Preview

説明

匿名のユーザーに対し、公開する前に下書きされた投稿 (もしくはその他の投稿タイプ) のプレビューリンクを共有します。

このサイトにアクセスできない人の助けを借りて記事を書いていて、公開する前にプレビューする必要があったことはありませんか ?このプラグインは、公開プレビューのために渡すことができる有効期限付きのナンスと URL を生成することによって、これを解決します。

このプラグインは以前 Matt Martz がメンテナンスしていて、アイディアは Jonathan Dingman によるものです。写真 は Hans Dinkelberg によるものです

使い方

  • 外部許可を有効にするには、有効にしたい投稿画面の公開ボタン上にある「外部確認を許可する」チェックボックスをオンにします。
  • リンクURLが表示されます。URLをコピーして確認をお願いしたい相手にシェアしてください。
  • 外部確認を無効にしたい場合は、チェックボックスをオフにしてください。

スクリーンショット

  • 投稿編集ページ

インストール

ノート: 設定画面はありません。

WordPress 内で自動インストール:

  1. WordPress の管理画面から「プラグインの新規追加」画面に移動します
  2. Public Post Preview を検索
  3. 「今すぐインストール」をクリックし、プラグインを有効にします

FTP で手動インストール:

  1. public-post-preview ディレクトリを /wp-content/plugins/ ディレクトリにアップロードします
  2. WordPress 管理画面の「プラグイン」画面からプラグインを有効にします

FTP の代わりに、WordPress を使用してアップロードするには:

  1. ダウンロードした zip ファイルを WordPress 管理画面の「新規追加」プラグイン画面 (「アップロード」タブ参照) でアップロードし、有効化してください。

FAQ

プレビューリンクのオプションが見つけられません。どこにありますか ?

チェックボックスは、下書きとして保存された未公開記事の場合にのみ表示されます。

時間がたった後、プレビューリンクが「リンクは期限切れです」とメッセージを返します。なぜですか ?

このプラグインは期限付きのナンスが追加された URL を生成します。デフォルトでリンクは48時間有効です。48時間後、リンクは期限切れとなり、エディター下の同じ場所で自動生成される新しいリンクをコピーしてシェアする必要があります。

48時間では足りません。nonce の有効期限を延長できますか ?

はいもちろんです。フィルターとして ppp_nonce_lifeを利用できます。サンプルは5日間としています。

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

または 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):

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

  • WordPress 5.7に対応。
  • 公開プレビューを有効にする場合、新しいプレビュー URL を作成。
  • 未定義の PHP “superglobals” の可能性のチェックを追加。@waviaei 支援によります。

詳しくはこちら CHANGELOG.md