Pay For Post with WooCommerce source code

By Matt Pramschufer, on WordPress.org since 2014. 1,000+ active installs.

Browse code Download zip

Pay For Post with WooCommerce puts a paywall on any post, page or custom post type and sells access to it as a WooCommerce product. You choose the products that unlock a post. Below is its source code for every one of its 77 releases, what changed in the latest one, and how often it ships.

What changed in 3.4.1

Released Dec 1, 2026, 3 days after 3.4.0
  • CHANGE – Who can comment on protected posts now applies everywhere comments appear, not only on the post’s own page. With Nobody (the default) or Customers with access, a latest comments block or comment list elsewhere on the site no longer shows comments from protected posts, and a trackback to such a post is refused like a comment. With Customers with access, customers read and add comments on the post itself. To keep comments on protected posts visible to everyone, choose Everyone under Settings > Paywall.
  • CHANGE – Tested with WordPress 7.2 and PHP 8.6. Nothing needed changing for either.
  • CHANGE – Preparing for jQuery 4, which WordPress plans to move to in 7.3: Pay For Post’s own admin scripts no longer use the features jQuery 4 removes.
  • BUG FIX – The changelog on WordPress.org and in the plugin’s “View details” window shows each version as a heading with its list of changes again.
  • BUG FIX (PREMIUM) – Deleting a page view from a customer’s profile asks for confirmation once. After the table had been sorted, searched or paged, one click on Delete asked again for each time it had been redrawn.
  • SECURITY – Security hardening.

10 files changed since 3.4.0: 9 modified, 1 added, 0 removed.

Compare 3.4.0 with 3.4.1

Release history

77 releases since April 2015
  1. 3.4.1 Dec 1, 2026 CHANGE – Who can comment on protected posts now applies everywhere comments appear, not only on the post’s own page. With Nobody (the default) or Customers with access, a latest comments block or comment list elsewhere on the site no longer shows comments from protected posts, and a trackback to such a post is refused like a comment. With Customers with access, customers read and add comments on the post itself. To keep comments on protected posts visible to everyone, choose Everyone under Settings > Paywall.
  2. 3.4.0 Nov 28, 2026 CHANGE – Redesigned admin screens: Settings, Protected Content (Premium) and Need Help. Getting Started, Documentation, What’s New, Debug (now Check a customer) and Tools (now Status and tools) are in Need Help, and links to the old pages open the new place. Settings are unchanged and need no re-saving.
  3. 3.3.0 Oct 23, 2026 SECURITY – General security hardening.
  4. 3.2.35 Oct 15, 2026 SECURITY – General security hardening.
  5. 3.2.34 Jul 31, 2026 BUG FIX (PREMIUM) – Fixed expire protection reloading a page over and over. The countdown that ends timed access on an open page was scheduled even when the expiry had already passed while the visitor could still see the content, so the page reloaded roughly once a second. Timed access that is genuinely still running is unaffected and still ends on the page the visitor is on.
Full Pay For Post with WooCommerce changelog with diffs

Source of 3.4.1

1,461 files
Browse all Pay For Post with WooCommerce 3.4.1 files Browse trunk