Public Post Preview

説明

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

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

Previously this plugin was maintained by Matt Martz and was an idea of Jonathan Dingman. Photo by Annelies Geneyn.

使い方

  • To enable a public post preview check the box in the document settings. In the classic editor it’s in the “Publish” meta box.
  • チェックボックスをオンにするとリンクが表示され、リンクをコピーして友達と共有することができます。
  • To disable a preview uncheck the box again.

スクリーンショット

  • Block Editor
  • Classic Editor

インストール

For an installation through 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 の有効期限を延長できますか ?

Yes, of course. Go to Settings > Reading > Public Post Preview and increase the
Expiration Time setting. You can also 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;
}

Note: The setting UI is not visible if the filter is used.

評価

78件のレビューをすべて表示

貢献者と開発者

Public Post Preview はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Public Post Preview” は27ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Public Post Preview” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

3.0.1 (2024-12-23):

  • Fix calculation of expiration time for preview nonce.

3.0.0 (2024-12-21):

  • Requires WordPress 6.5.
  • Requires PHP 8.0.
  • Add setting to increase the default expiration time (Settings > Reading > Public Post Preview).
  • Show icon for preview link in list tables next to the state.
  • Change interface in block editor to match latest editor design.
  • Update sidebar description to include the preview link.
  • Extend Preview dropdown for public preview in WordPress 6.7+.
  • Add Public Preview post list view. Props @rafaucau.

詳しくはこちら CHANGELOG.md