Skip to content
Sign in
Pay For Post with WooCommerce icon

Pay For Post with WooCommerce

Sell Pages/Posts through WooCommerce 6.9+ quickly and easily.

Not scanned yet WordPress plugin 1k installs

Install in

No install steps yet

Follow the steps on the source page.

Quickly and easily sell access to pages, posts and custom post types through WooCommerce with Pay For Post with WooCommerce. I originally created this plugin because I looked everywhere, and I couldn’t find a plugin already out there, free or premium, that would do the simple fact of selling access to a particular page or post through WooCommerce. So I decided to write my own.

Requirements

  • WordPress 6.6+
  • WooCommerce version 6.9+ to be installed and active
  • Guest checkout to be turned OFF
  • PHP 7.4+ is required

How It Works

Getting everything setup will take you less than 5 minutes with three simple steps.

  • Step 1 Create a product in WooCommerce
  • Step 2 Create a page or post in WordPress
  • Step 3 Associate your product with your page using the Pay For Post with WooCommerce meta box.

It’s that simple.

With the Premium version, you have several other options for protecting content like, time based, number of page views, etc.

How-to Videos

How-to Install and Configure

How-to Protect a Page/Post

Demo

You can view a front-end demo by going to https://demo.pramadillo.com if you would like to schedule an admin demo please visit https://pramadillo.com/support and select Plugin Admin Demo.

Features

  • Restrict content from pages, posts and custom post types based on if they have purchased a specific WooCommerce product
  • Ability to protect a single post or multiple posts with a single product
  • Ability to protect posts with multiple products
  • Simple to use
  • Uses native WooCommerce functionality to ensure future compatibility
  • Global restricted content message which is used for all protected content
  • Utilize any standard WooCommerce shortcodes
  • PREMIUM ONLY Ability to override Restricted Content Message on a per page basis
  • PREMIUM ONLY Delay Restriction – This allows you to delay the paywall from appearing for a set amount of time.
  • PREMIUM ONLY Page View Restriction – This allows you to limit the number of page views the user who purchased this product has before the paywall reappears. Options to specify over a set amount of time or forever.
  • PREMIUM ONLY Expiry Restriction – This allows you to specify an expiration on this post which would require the user to repurchase the product associated with this post.
  • PREMIUM ONLY Custom WooCommerce tab on the My Account page to list out all purchased content
  • PREMIUM ONLY Listing of purchased content on order receipt and order confirmation page
  • PREMIUM ONLY PolyLang Multiple Language support
  • PREMIUM ONLY Priority Support
  • PREMIUM ONLY Woo Memberships Support!
  • PREMIUM ONLY Woo Subscriptions Support! (Simple and Variable subscription product types, and products sold on WooCommerce Subscriptions 9.0+ subscription plans)
  • PREMIUM ONLY Easily access all protected content and which users purchased them
  • PREMIUM ONLY Automatically add a lock icon to all protected posts
  • PREMIUM ONLY Show a list of content that gets unlocked by purchased product on product page.
  • PREMIUM ONLY Full Elementor Support. You can now protect every element differently on an Elementor page!

The premium version of this plugin consists of more advanced features to really get the most out of selling your pages and posts! To purchase the premium version please visit https://pramadillo.com/plugins/woocommerce-pay-per-post/

Shortcodes

[woocommerce-payperpost template='purchased']

This outputs an unordered list of the posts that have been purchased by the current user logged in.

There are several additional shortcodes available in the free and premium version. Take a look at https://pramadillo.com/plugins/woocommerce-pay-per-post/ for other available shortcodes.

Template Functions

IMPORTANT Out of the box this plugin will work with any theme which uses the standard WordPress function the_content(). For those themes that do not utilize the_content() you can use the following static functions in your templates.

Woocommerce_Pay_Per_Post_Helper::has_access()

This checks if the current user has access to the page. It returns true/false

Woocommerce_Pay_Per_Post_Helper::get_no_access_content()

This returns the content specified in the PPP Options.

For a full example of this take a look at https://pramadillo.com/plugins/woocommerce-pay-per-post/

Written by Joobi from the project's own listing. See the source page

pay for postpayforpostsell contentwoocommerce
25 Nov 2026
Version 3.4.0 released. Not scanned yet.

3.4.0

  • 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.
  • CHANGE – Requires WordPress 6.6 or later and WooCommerce 6.9 or later. Sites below these versions keep the version they have, and WordPress will not offer them this update.
  • CHANGE – Settings has a tab per section (Paywall, Access, Customers, Editor, Integrations, Advanced), an On checkbox beside each yes-or-no setting, one Save for every tab, one choice for who can comment on protected posts, a paywall token table with Insert buttons, and a list of detected integrations. Choosing Customers with access for comments (Premium) keeps them closed to everyone if the licence lapses.
  • CHANGE – The Access Diagnostic, now Need Help > Check a customer, leads with the answer, then each check in the order the paywall runs them, marking the ones that kept the customer out, beside their orders. Status and tools shows versions, guest checkout and debug log status, and the maintenance tools.
  • CHANGE (PREMIUM) – The Protected Content screen loads a page at a time and lists a post’s buyers when asked, so it opens quickly on large stores. Search by title, filter by post type, and check a buyer’s access from the list. Links to a post’s buyers from earlier versions still work.
  • CHANGE – The Pay For Post box in the post editor is one screen instead of five tabs, and the block editor panel has the same layout: whether the post is protected and what a visitor gets, links to preview its paywall and check a customer, the products that unlock it, the protection type (Buy once, Free at first, Limited views or Time limited) with its settings, and the paywall message. Choosing the default message and saving deletes the post’s own message. In the block editor the post’s own message is written in the panel. Posts’ settings are unchanged.
  • CHANGE – On the free plan, the post editor box shows Premium protection types and the per-post message locked, with a link to the plans, instead of advertising images. A post set to a Premium type, or with its own paywall message, says so.
  • CHANGE – Protected Content and Check a customer name a post’s protection type as the post editor does: Buy once, Free at first, Limited views or Time limited.
  • CHANGE – Clearer settings help. “Delete all Pay For Post data” applies when the plugin is deleted, not deactivated, and removes every post’s protection as well as the settings.
  • CHANGE – The debug log has a new file name. A log left by an earlier version is deleted when you update.
  • CHANGE – Tested with WordPress 7.1 and WooCommerce 11.3.
  • NEW – The full documentation is now in the plugin, under Pay For Post > Need Help > Docs, with search, links between pages and a list of each page’s sections. It matches the version you have installed.
  • NEW – Need Help opens on a Start view: check a customer’s access, search the docs, or copy your status report and contact support.
  • NEW – While WooCommerce guest checkout is on, Settings and Need Help say so in red, with a link to turn it off: guests have no account, so their purchase unlocks nothing.
  • NEW – Turn off and delete: while the debug log is on, Need Help offers to turn logging off and delete the log in one click.
  • NEW – The debug log has its own view under Need Help, shown while logging is on or a log is left, with Copy, Delete and Turn off and delete.
  • NEW – On the free plan, Premium badges in Settings link to the plans.
  • NEW – The Access Diagnostic names the order behind the answer. An order waiting for payment, cancelled or refunded is named with its status in the reason, and Open order goes straight to it.
  • NEW – Paywall preview on the settings page: see a post’s paywall with the message as you have it, before saving.
  • NEW – Who can set protection, under Settings > Editor: show the Pay For Post panel only to the roles you choose. Someone outside them cannot change a post’s protection.
  • NEW (PREMIUM) – Settings for things that needed code before: where purchased content links on orders appear and their heading, the My Account tab’s name and headings, roles that skip the paywall, where the views or time remaining box goes, whether an expiry post reloads when access runs out, and turning the WooCommerce Subscriptions integration off. Code using the matching filters keeps working and overrides the setting.
  • NEW (PREMIUM) – {{memberships}} token for the restricted content message. On a page protected by a membership it places a Paid Memberships Pro checkout link for each level, or a members-only notice when the membership cannot be bought. The wc_pay_per_post_paywall_membership_offer filter changes or removes them.
  • NEW (PREMIUM) – The Access Diagnostic warns when a page cannot be bought because it is protected only by memberships that nothing sells.
  • NEW (PREMIUM) – wc_pay_per_post_can_use_paid_memberships_pro filter, to turn the Paid Memberships Pro integration off.
  • BUG FIX – Saving a post in the classic editor no longer removes its products. Products whose IDs an import or other code had stored as numbers showed as not selected, so saving the post, even to fix a typo, removed them and left the post free to read. Both editors now also keep a product, plan or level they cannot list, such as an unpublished product or a plan whose plugin is switched off. It shows as “not available” and stays on the post until you remove it.
  • BUG FIX – Saving a post no longer gives its protection to another post that a different plugin updates during the same save.
  • BUG FIX – The link for deleting the debug log did nothing. Delete it from Need Help, Debug log.
  • BUG FIX (PREMIUM) – Posts protected by a WooCommerce Memberships plan or a Paid Memberships Pro level now show a way to get access instead of an empty product block: the plan’s products (with a link to any the product list cannot show, such as a variation or a hidden product), a link to the level’s checkout, or a members-only notice with a login link.
  • BUG FIX (PREMIUM) – The block editor’s Pay For Post panel now lists WooCommerce Memberships plans and Paid Memberships Pro levels, as the classic editor does. It listed products only, so a post protected by a plan or level lost it the first time anything was changed in the panel.
  • BUG FIX (PREMIUM) – Buyer lists on the Protected Content screen now include orders on stores using High-Performance Order Storage.
  • BUG FIX (PREMIUM) – Polylang support can be turned on from the settings page, and saving the settings while Polylang is deactivated no longer turns it off.
  • BUG FIX (PREMIUM) – Leaving the purchased content links out of order emails works again on WooCommerce’s current email template, and the order link filters work from a theme’s functions.php.
  • BUG FIX (PREMIUM) – With Polylang support on, the headings above the purchased content links on orders and above each post’s other languages were missing.
  • BUG FIX (PREMIUM) – Customers with access now see a protected post’s comments when comments are open only to them. Their comment count read 0, so many themes hid the comments.
  • BUG FIX (PREMIUM) – No more “Non-canonical cast (boolean) is deprecated” warnings on PHP 8.5.
  • SECURITY – Security hardening.

3.3.0

  • SECURITY – General security hardening.
  • BUG FIX – Fixed a block editor save removing a post’s protection. A post protected in the classic editor, through the meta box with Block Editor Integration off, by an import, or before the block editor sidebar existed lost all its products, and so became free to read, the first time it was saved in the block editor, even if only the title changed. A post whose sidebar settings were left over from an earlier edit went back to those settings instead. Sidebar settings are now applied only when they were changed.
  • BUG FIX – The block editor sidebar now shows a post’s products as selected when an import or other code stored their IDs as numbers. They appeared unselected, and the next change made in the sidebar removed them.
  • BUG FIX – Fixed content lists, including the My Account Purchased Content tab, showing another list’s posts for up to an hour. Lists that differed only in their product_ids attribute or in a wc_pay_per_post_args filter shared one cached result. A wc_pay_per_post_args filter now takes effect immediately.
  • BUG FIX – The Access Diagnostic’s purchase history now counts the same orders as the access check. It marked orders with no paid date as not counting, such as Cash on Delivery orders that have not been completed, and did the same to guest orders and orders on another account placed under the customer’s email address, so a report could say the customer has access while none of their orders counted. On Expiry and Page View pages it now names the order the access window is measured from, and says when that order has no paid date.
  • BUG FIX (PREMIUM) – A cancelled, expired or on-hold subscription bought through a WooCommerce Subscriptions plan kept access to protected content. After updating, those customers see the paywall. Stores using the classic subscription product types are unaffected.
  • BUG FIX (PREMIUM) – Fixed a fatal error on the My Account Purchased Content tab when Polylang support is enabled.
  • BUG FIX (PREMIUM) – Fixed a fatal error in the purchased-datatables list for any customer who had made a purchase. With Polylang support enabled it now keeps its table.
  • BUG FIX (PREMIUM) – Purchased content lists no longer report posts with Expiry protection as expired while access is still valid. Only templates customised to show $post->expiration_status were affected.
  • BUG FIX (PREMIUM) – The inline shortcode’s paywall_message now offers the products that unlock the post the region is in, and its {{add_to_cart_link}} placeholder renders an add-to-cart link for each product. It rendered nothing before.
  • NEW (PREMIUM) – Support for WooCommerce Subscriptions 9.0+ subscription plans. A product sold on plans unlocks content when the customer bought it one-time, or while they hold an active or pending-cancel subscription containing it. Classic subscription product types are unchanged.
  • NEW (PREMIUM) – The Access Diagnostic explains a lapsed subscription plan instead of reporting that the customer never bought the product.
  • NEW (PREMIUM) – wc_pay_per_post_is_subscription_plan_product filter. Return false to treat a product as an ordinary product, or true to keep the plan rule for a product whose plans were removed.
  • NEW (PREMIUM) – Sort order for the Purchased Content tab on the WooCommerce My Account page. Under Settings > General Options, choose Title A–Z, Title Z–A, Newest published first, Oldest published first or Menu order for both lists on the tab. Newest published first remains the default, so nothing changes until you pick another order.
  • NEW (PREMIUM) – wc_pay_per_post_my_account_shortcode_atts filter. Receives the shortcode attributes for each section of the Purchased Content tab and the section (has_access or purchased).
  • NEW – wc_pay_per_post_shortcode_posts filter. Receives the list a [woocommerce-payperpost] template is about to render, already filtered and sorted, plus the template and the shortcode attributes.
  • ENHANCEMENT (PREMIUM) – orderby=”title” on the [woocommerce-payperpost] shortcode now sorts titles naturally, so “Lesson 2” comes before “Lesson 10”.

3.2.35

  • SECURITY – General security hardening.
  • BUG FIX – Fixed a fatal error on the free version for any post configured with Delay, Page View or Expiry protection, typically settings left over from a premium licence that has since lapsed. Because the check runs through the_content, one such post took down every archive page listing it, for every visitor. Those posts now fall back to standard protection: still locked, purchase still required. The delay window, page-view allowance and expiry are simply not applied. Settings are untouched and resume if a licence is reactivated. An admin notice reports how many posts are affected.
  • BUG FIX – The block editor bundle was served with no version number and no declared dependencies, so a browser or CDN holding an older copy had no reason to fetch an updated one, and editor packages could load in the wrong order. Both now come from the build manifest.
  • BUG FIX – The block editor sidebar was built on an API WordPress deprecated in 6.6. It now uses the current API with a fallback for older WordPress, so the protection panel keeps working when the old one is removed.
  • BUG FIX (PREMIUM) – On sites using High-Performance Order Storage, Expiry and Page View protection could measure a customer’s access window from an older order than the one they had most recently placed. Sites on legacy order storage were unaffected.
  • BUG FIX – Removed the false “you must enable custom field support” warning for custom post types that already had it enabled. The check ran before most post types were registered. Reported with Custom Post Type UI; it affected nearly every custom post type.
  • NEW – Access Diagnostic on the Debug page. Enter a customer’s email address and the URL of the page they cannot open, and the plugin reports whether they have access and why: which products protect the page, which of them the customer bought, every order containing a required product and why each did or did not count, products they bought that do NOT unlock the page, and when access expires or how many page views remain. It runs the real protection engine as that customer, so its answer cannot differ from what the customer sees, and it never consumes a page view. A plain-text developer export with no personal data is included for support replies. It also flags configurations known to cause tickets: guest checkout enabled, protection disabled site-wide by the wcppp_is_active filter, and a WooCommerce Subscriptions compatibility layer supplying the subscription classes.
  • NEW – Admin notice when posts are configured for Delay, Page View or Expiry protection on an install that cannot apply them.
  • NEW – wc_pay_per_post_is_admin_call filter. Receives the is_admin() result and the post ID, and decides whether the protection engine takes its admin shortcut (which grants access to everything). Lets tools evaluate access from wp-admin and still get the front-end answer.
  • NEW – Woocommerce_Pay_Per_Post_Helper::can_use_premium_protection(), the single gate for whether premium protection types may be applied.
  • ENHANCEMENT (PREMIUM) – Subscription lookups are cached for the duration of a request. On a product page listing 60 unlocked posts this took database queries from 69 to 6. The cache is cleared when a subscription changes status.
  • ENHANCEMENT – The block editor bundle is now built in production mode: 466 KB down to 97 KB, no functional change.
  • UPDATE – Updated Freemius SDK to the latest version
  • UPDATE – Tested up to WordPress 7.1
  • UPDATE – Tested up to WooCommerce 11.2.1
  • UPDATE (PREMIUM) – Tested with Elementor 4.3.4 and Elementor Pro 4.3.1
  • KNOWN LIMITATION (PREMIUM) – WooCommerce Subscriptions 9.0+ can sell any product on a subscription plan, and its classic Simple/Variable subscription product types are off by default on new stores. Pay For Post recognises subscriptions by the classic product types only. A product sold through a subscription plan still unlocks the page, but its subscription status is not checked, so cancelling does not remove access. Stores using the classic product types are unaffected. Subscription plan support is planned for the next release.

3.2.34

  • 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.
  • BUG FIX – Fixed the debug log reporting the opposite of the access decision it had just made, which made access issues much harder to diagnose. The access decision itself was always correct.
  • ENHANCEMENT – The access check is now performed once per request instead of twice, removing duplicate database queries on every protected page.
  • ENHANCEMENT – Added the wc_pay_per_post_can_use_woocommerce_subscriptions filter. Pay For Post detects WooCommerce Subscriptions by class name, which also matches plugins that ship a WooCommerce Subscriptions compatibility layer (such as Flexible Subscriptions by WP Desk). On those stores a subscription product requires both a purchase and an active subscription record, so customers who paid can be refused if no subscription record was created. Returning false treats those products as ordinary purchases so purchase plus expiration works as configured: add_filter( ‘wc_pay_per_post_can_use_woocommerce_subscriptions’, ‘__return_false’ );
  • BUG FIX (PREMIUM) – Page View Restriction now grants exactly the number of views configured. Previously the view being served was not counted until after access had been granted, so a post set to 3 views was readable 4 times and the paywall appeared on the 5th load. A post set to 3 views is now readable 3 times, with the paywall on the 4th. This also corrects the “Page Views: X out of Y” line, which previously showed 0 out of Y on the first view.
  • UPDATE (PREMIUM) – The wc_pay_per_post_enable_pageview_fix filter now defaults to true. Sites that want the previous, more lenient count back can restore it with: add_filter( ‘wc_pay_per_post_enable_pageview_fix’, ‘__return_false’ );
  • BUG FIX (PREMIUM) – Fixed page view counter not resetting when a user repurchases access to a page/post. Views recorded before the new purchase no longer count against the new allowance.
  • BUG FIX (PREMIUM) – Fixed Elementor element-level protection showing the paywall to users who had already purchased access. Elementor’s per-document element cache stored the paywalled markup and served it to everyone; the cache is now cleared and bypassed on PPP-protected documents.
  • UPDATE – Updated Freemius SDK to v2.13.4
  • UPDATE – Tested up to WordPress 7.0.2
  • UPDATE – Tested up to WooCommerce 10.9.4
  • UPDATE (PREMIUM) – Tested with Elementor and Elementor Pro 4.2.0

3.2.33

  • BUG FIX – Fixed fatal error when using the purchased c
16 May 2014Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)