DK Preview and Feedback for Posts

By Douglas Karr

0+ active installationsVersion 1.0.3

Share a private link to an unpublished post. Reviewers read it without logging in, highlight text, leave notes, and approve.

Description

DK Preview and Feedback for Posts lets you send a draft to a client, editor, or subject-matter expert without creating a WordPress account for them.

Create a link from the Share preview box in the editor and send it. The reviewer sees the draft exactly as it will look on your site. A small Review tab opens a panel where they can:

  • Enter their name and email once (remembered in their browser).
  • Highlight any passage in the article and leave a note or suggested change.
  • Add as many notes as they need.
  • Approve the draft as-is.

Every note and approval appears in a Preview feedback box under the editor, with the highlighted text, the reviewer’s name and email, and the time. The post author can be emailed on each note and approval. Notes never change your post content, and the post stays unpublished.

Features

  • Random 128-bit tokens, not derived from the post ID, so links cannot be guessed.
  • Links expire after a set number of days (14 by default), or never.
  • Regenerate or revoke a link at any time.
  • Works with drafts, pending, scheduled, and private posts and pages, and any public custom post type you enable.
  • Once a post is published, old preview links redirect to the permalink.
  • Preview pages send noindex and no-cache headers and tell page cache plugins not to store them.
  • A “Shareable preview” row action on the Posts and Pages lists.
  • Personal data export and erase support for reviewer notes, plus suggested privacy policy text.
  • Developer filters for post types, statuses, link lifetime, URL base, recipients, and the content selector.
  • No external services, no tracking, no ads.

Developer filters

  • dknm_pfp_post_types – post types that get preview links.
  • dknm_pfp_allowed_statuses – statuses that can be shared.
  • dknm_pfp_ttl – link lifetime in seconds (0 = never expires).
  • dknm_pfp_base – the URL base, preview by default.
  • dknm_pfp_url – the final preview URL.
  • dknm_pfp_feedback_enabled – turn reviewer notes on or off.
  • dknm_pfp_notify_author and dknm_pfp_notification_recipient – control feedback emails.
  • dknm_pfp_content_selector – the CSS selector reviewers can highlight in.
  • dknm_pfp_rate_limit – submissions allowed per visitor per post every ten minutes.

Actions: dknm_pfp_link_created, dknm_pfp_link_revoked, dknm_pfp_note_added, dknm_pfp_approved.

Built by DK New Media. Visit Martech Zone for updates on this plugin and other marketing tools.

Installation

  1. Install the plugin from Plugins > Add New, or upload the dk-preview-and-feedback-for-posts folder to /wp-content/plugins/.
  2. Activate it through the Plugins screen.
  3. Optional: adjust settings under Settings > Preview and Feedback.
  4. Open any draft, select Create preview link in the Share preview box, and send the link.

Pretty permalinks give links like https://example.com/preview/{token}/. With plain permalinks the plugin uses ?dknm_pfp_token={token} instead.

FAQ

Do reviewers need a WordPress account?

No. Anyone with the link can view the draft and leave feedback. Treat the link like a password and revoke it when the review is done.

Does the post get published?

No. The post keeps its status. Notes are stored separately and never change the content.

What happens to the link after I publish?

It redirects to the published permalink. You can revoke it from the editor.

Can I change how long links last?

Yes. Set the number of days under Settings > Preview and Feedback, or use 0 for links that never expire. Developers can use the dknm_pfp_ttl filter.

My page cache or CDN served an old preview. What should I do?

The plugin sends Cache-Control: private, no-store, defines DONOTCACHEPAGE, and opts out of the Cloudflare plugin’s page cache. If your host or CDN caches HTML regardless of headers, add a cache bypass rule for /preview/* (or your custom URL base).

Highlighting does not work on my theme.

Set the Article content selector to the CSS selector that wraps your post content, for example .entry-content or .post-body.

What data does the plugin store?

For each note: the post ID, reviewer name and email, highlighted text, comment, and date, in its own database table. Reviewer email addresses are shown only to editors in the admin, never on the preview page.

What is removed when I delete the plugin?

Deleting the plugin from the Plugins screen removes its settings, every preview token, rate-limit transients, and the notes table.

Screenshots

Changelog

1.0.3

  • Fixed: theme blockquote and typography styles bleeding into the reviewer panel notes.
  • Removed the Plugin URI header, which duplicated the author URL. Author and readme links now include campaign tracking, and the readme credits DK New Media and Martech Zone.

1.0.2

  • Added mobile screenshots of the shareable preview, reviewer panel, and Preview feedback box.
  • Excluded WordPress.org banner-source tooling from the distribution zip.

1.0.1

  • Renamed to DK Preview and Feedback for Posts (slug dk-preview-and-feedback-for-posts) to meet WordPress.org naming guidelines.

1.0.0

  • Initial release.