Title: Pay For Post with WooCommerce
Author: Matt Pramschufer
Published: <strong>2014年5月16日</strong>
Last modified: 2026年10月23日

---

プラグインを検索

![](https://ps.w.org/woocommerce-pay-per-post/assets/banner-772x250.png?rev=2258172)

![](https://ps.w.org/woocommerce-pay-per-post/assets/icon-256x256.png?rev=2252656)

# Pay For Post with WooCommerce

 作者: [Matt Pramschufer](https://profiles.wordpress.org/mattpramschufer/)

[ダウンロード](https://downloads.wordpress.org/plugin/woocommerce-pay-per-post.3.3.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/woocommerce-pay-per-post/#description)
 * [レビュー](https://ja.wordpress.org/plugins/woocommerce-pay-per-post/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/woocommerce-pay-per-post/#installation)
 * [開発](https://ja.wordpress.org/plugins/woocommerce-pay-per-post/#developers)

 [サポート](https://wordpress.org/support/plugin/woocommerce-pay-per-post/)

## 説明

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

 * WooCommerce version 2.6+ 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](https://demo.pramadillo.com)
if you would like to schedule an admin demo please visit [https://pramadillo.com/support](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/](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/](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/](https://pramadillo.com/plugins/woocommerce-pay-per-post/)

## スクリーンショット

[⌊Settings Screen including premium features.⌉⌊Settings Screen including premium
features.⌉[

Settings Screen including premium features.

[⌊Pay For Post with WooCommerce meta box, including premium features.⌉⌊Pay For Post
with WooCommerce meta box, including premium features.⌉[

Pay For Post with WooCommerce meta box, including premium features.

[⌊Protected Page⌉⌊Protected Page⌉[

Protected Page

[⌊Protected Page after checkout⌉⌊Protected Page after checkout⌉[

Protected Page after checkout

[⌊Premium Feature - WooCommerce My Account Tab⌉⌊Premium Feature - WooCommerce My
Account Tab⌉[

Premium Feature – WooCommerce My Account Tab

[⌊Premium Feature - WooCommerce Order Confirmation⌉⌊Premium Feature - WooCommerce
Order Confirmation⌉[

Premium Feature – WooCommerce Order Confirmation

## インストール

 1. Activate the plugin through the `Plugins` menu in WordPress
 2. Browse to Admin->WooCommerce PayPerPost->Settings
 3. Go to Page or Post and you should see a meta box for Pay For Post with WooCommerce.
 4. You can find out more on how to install by visiting [https://pramadillo.com/documentation/installing-woocommerce-pay-per-post/](https://pramadillo.com/documentation/installing-woocommerce-pay-per-post/)

## FAQ

### Do you offer installation and customization services?

Yes, if you need help with installation and/or would like additional customization
work done for your website, you can fill out a request form at [https://pramadillo.com/support](https://pramadillo.com/support)

### I wish this plugin had XZY feature

While I try to do my best to incorporate new features all the time, I implemented
a new Feature Request board located at [https://pramadillo.com/feature-requests](https://pramadillo.com/feature-requests)

### The output from the shortcode to display the products needed to purchase to view content looks weird

This is a default shortcode from WooCommerce. Take a look at https://docs.woocommerce.
com/document/woocommerce-shortcodes/#section-9

Another thing you can try is to set the number of columns on the shortcode to disply
only 1 column to do that you can change your shortcode to be [products ids='{{product_id}}’
cols=’1′]

### Can this plugin work with custom post types?

Yes, this plugin worked with all custom post types. In the settings you can add 
and remove which post types you would like the metabox to show up on.

### Does this work with WooCommerce Subscriptions 9.0 subscription plans?

Yes, in the premium version. WooCommerce Subscriptions 9.0 added subscription plans,
which let any product be sold one-time, on a subscription, or both. Pay For Post
decides by how the customer bought it. A customer who bought the product one-time
has access permanently, like any ordinary purchase. A customer who bought it on 
a plan has access while that subscription is active or pending cancellation. When
it is cancelled, expires or goes on hold, access ends, unless they also bought the
product one-time.

The classic “Simple subscription” and “Variable subscription” product types work
as before.

### How do you link to your post after an order has been placed?

Use the premium version. 🙂 The premium version handles this for you. However, if
you are using the free version what I have done in the past is use the Order Notes
for the product in WooCommerce. So what will happen is after they purchase, on the
Payment Received page they will see the order notes, and they will get sent in the
receipt also.

So for instance, I have a Vimeo video that I embed in a page, on the Vimeo Product
in WooCommerce I add the Password and notes on how to view the video, they gets 
transmitted via email and on the thank you page for the user.

**For PREMIUM users, there is a built-in option to include the post links in the
order email, confirmation screen and on the users My Account page.**

### Do I need to have user accounts turned on?

Yes, in order to keep track of who purchased what, it is a requirement that all 
customers have user accounts/

### Do you offer support?

Yes, I do the absolute best I can to support the free version of the plugin. If 
you upgrade to the premium version you will have priority support.

## 評価

![](https://secure.gravatar.com/avatar/c93f3c825e795aec2409aff8aef3b672d313124fe446c1ac44301b513154cd71?
s=60&d=retro&r=g)

### 󠀁[not usable unless paid](https://wordpress.org/support/topic/not-usable-unless-paid/)󠁿

 [rjacob999](https://profiles.wordpress.org/rjacob999/) 2023年5月13日

the amount of features (paid only) renders it unusable how come I cannot view who
purchases what the customer cannot see what he purchased and call this a FREE working
version! this is a joke/ time-waster!

![](https://secure.gravatar.com/avatar/25b76cbff3710d73aa3e66a91b028696e0aa4b56bf55eb62cc3f07f2236ca54b?
s=60&d=retro&r=g)

### 󠀁[useful plugin](https://wordpress.org/support/topic/useful-plugin-920/)󠁿

 [sorooshmolavi](https://profiles.wordpress.org/sorooshmolavi/) 2022年11月28日 1
reply

thank you very much i needed this plugin to sell undownloadable ebooks online

![](https://secure.gravatar.com/avatar/18b7fc5ede7613e26e9c1c8dfef7ae4ecbdc8f937ecff10f4cc942b9badc370f?
s=60&d=retro&r=g)

### 󠀁[Easy to set up and good support](https://wordpress.org/support/topic/easy-to-set-up-and-good-support/)󠁿

 [c_dilla](https://profiles.wordpress.org/c_dilla/) 2022年9月16日

I'm using the free version and it's been easy to set up and it's doing everything
I need at the moment. When I run into trouble the support has been quick to reply
and solve my issues.

![](https://secure.gravatar.com/avatar/ddfe596424c880c55653087c0304d791a7fa5b44e5ca89b09b32588f5b7d2a3b?
s=60&d=retro&r=g)

### 󠀁[Great support](https://wordpress.org/support/topic/great-support-4161/)󠁿

 [pudel1234](https://profiles.wordpress.org/pudel1234/) 2022年3月29日

The plugin was just what I was looking for. Its easy to work with and the support
is great. I have had a couple of set up issues -mostly due to me not reading the
instructions properly 🙂 But I have had prompt replies and good instructions from
the support team.

![](https://secure.gravatar.com/avatar/eacdf85e59ef55499064c526bf8258b646de5c1ac1308b87ad3ef65a07100ab3?
s=60&d=retro&r=g)

### 󠀁[Nice and easy to use](https://wordpress.org/support/topic/nice-and-easy-to-use-91/)󠁿

 [dokunbam](https://profiles.wordpress.org/dokunbam/) 2021年11月11日

Just fit to what I needed. kudos

![](https://secure.gravatar.com/avatar/c891e36dd06d2b36001144ff65dfff698cf01e5069b155f995c58ad166e18d9a?
s=60&d=retro&r=g)

### 󠀁[Awesome all the way!](https://wordpress.org/support/topic/awesome-all-the-way/)󠁿

 [pbuser](https://profiles.wordpress.org/pbuser/) 2021年9月9日 1 reply

Great plugin, just what I needed. Looking forward to the continued development of
the Elementor integration 🙂 Matt, the developer, is really fast in helping out 
with any issues I've come across! 5 stars easy!

 [ 53件のレビューをすべて表示 ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/)

## 貢献者と開発者

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

貢献者

 *   [ Matt Pramschufer ](https://profiles.wordpress.org/mattpramschufer/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

[“Pay For Post with WooCommerce” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/woocommerce-pay-per-post)

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

[コードを閲覧](https://plugins.trac.wordpress.org/browser/woocommerce-pay-per-post/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/woocommerce-pay-per-post/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/woocommerce-pay-per-post/)
を [RSS](https://plugins.trac.wordpress.org/log/woocommerce-pay-per-post/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

=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 content shortcode
on free version of the plugin.

=3.2.32=
 * SECURITY – Hardened against XSS attacks. * BUG FIX (PREMIUM) – Fixed
issue where canceled WooCommerce Subscriptions sometimes still granted access to
protected content. * BUG FIX (PREMIUM) – Fixed My Account “Purchased Content” endpoint
displaying blank page when shortcode display options were saved with no selections.
The endpoint now defaults to showing both “has access” and “purchased” sections 
when no specific selections are made, preventing empty display. Also improved admin
settings UI to clarify default behavior. * ENHANCEMENT (PREMIUM) – Added show_status_classes
parameter to [wc-pay-for-post-product-unlocks] shortcode for performance optimization.
When set to “false”, the shortcode skips has_access() database queries and omits
locked/unlocked CSS classes. * BUG FIX (PREMIUM) – Fixed {{excerpt}} token in paywall
messages not respecting manually-entered excerpts from Block Editor or Classic Editor.
The token now uses the manual excerpt when available, falling back to auto-generated
excerpt only when none exists. * BUG FIX (PREMIUM) – Fixed issue where on rare occasions
having a subscription product and standard product would cause the post not to be
unprotected on purchase. * UPDATE – Tested up to WordPress 6.9.0 * UPDATE – Tested
up to WooCommerce 10.4.3 * UPDATE (PREMIUM) – Tested with Elementor 3.34.0

=3.2.31=
 * SECURITY – Hardened against XSS attacks * UPDATE – Updated Symfony polyfill
packages to v1.33.0 * UPDATE – Updated Freemius SDK to v2.13.0 * BUG FIX – Fixed
issue where on rare occasions the check for active WooSubscription subscriptions
would fail.

=3.2.30=
 * UPDATE – Updated all third-party libraries. * FIX – Fixed _load_textdomain_just_in_time
notice

=3.2.29=
 * UPDATE – Reverted custom function of customer_has_purchased_product()
and conditionalized it to only be used on WC 9.6.0 and 9.6.1 and to use the native
wc_customer_bought_product() otherwise, now that WC has fixed the bug in 9.6

=3.2.28=
 * UPDATE – Updated all 3rd party vendor libraries * UPDATE – Added custom
function for wc_customer_bought_product() since that function is broke in WooCommerce
version 9.6, 9.6.1, and 9.7.0-pre-release

=3.2.27=
 * BUGFIX – Fixed fatal error on some Elementor integrations.

=3.2.26=
 * UPDATE – Added additional parameters when creating transients to account
for missing attributes. * UPDATE – Updated all third-party libraries

=3.2.25=
 *UPDATE – Added in new filter for wc_pay_per_post_enable_pageview_fix 
which when protected pages view page view protection and setting amount to 1 causes
issues on some installs.

=3.2.24=
 * UPDATE – Added in a filter to disable the last_purchase_date on shortcodes
which is an expensive operation. wc_pay_per_post_enable_last_purchase_date * FEATURE–
WooMemberships, WooSubscriptions and PaidMembershipPro now work with Elementor integration.*
UPDATE – Updated Freemius Library

=3.2.23=
 * BUGFIX – Fixed issue with Remaining shortcode not outputting results
when used inside of Elementor page. * UPDATE – Updated to latest Freemius library*
FEATURE – Added the filter wc_pay_per_post_shortcode_remaining_no_posts for changing
the text when there is no posts remaining to be purchased. * FEATURE – Added new
helper function get_last_purchase_date by post ID. Can be used to sort purchased
products by date of last purchase on the Purchased shortcode template.

=3.2.22=
 * Feature – Added in tools menus * UPDATE – Updated all third party libries

=3.1.21=
 * BUGFIX – Corrected issue if you have homepage set to display latest 
posts with full content, posts would not be protected until you click on them. This
has been fixed. * BUGFIX – Corrected issue with improperly identifying membership
products. * UPDATE – Added more support for AVADA page builder.

=3.1.20=
 * BUGFIX – Fixed issue with inline shortcode not working correctly on 
some installations.

=3.1.19=
 * ROLLBACK – Rolled back refactoring of protection checks as it introduced
more issues than it corrected * UPDATE – Compatibility with new WooCommerce High-
Performance Order Storage (HOPS) was added. * UPDATE – A feature was added to append
body classes to protected posts along with information about whether users have 
access to a set post or not. * UPDATE – A helper function for checking for HOPs 
was added. * UPDATE – Code for Elementor plugin integration was refactored. Adjustments
have been made in the logic for checking the ability to view content and subscription
status. * UPDATE – The function ‘can_user_view_content’ in the WooCommerce plugin
was optimized. It returns directly instead of using a variable. Also, a check for
posts containing Elementor Widgets was added. * UPDATE – The code was updated and
refactored, including some changes to CSS for Elementor integration, streamlining
logic in ‘check_if_protected’ function, and using Carbon::now() instead of current_time(‘
timestamp’) in a method in ‘class-woocommerce-pay-per-post-helper.php’. * UPDATE–
Elementor pages now show up in the purchased content shortcode * UPDATE – Updated
all third-party libraries to latest versions * BUGFIX – Fixed issue with PHP Notice
displaying for WooMemberships. * BUGFIX – Fixed issue where if checkbox to allow
admins to view content was checked, admins couldn’t view elementor protected widgets.

#### 3.1.18

 * BUGFIX – Updated logic for delay protection which would sometimes not show content
   on certain installs.
 * BUGFIX – Added in helper function to check to see if REST/Admin request when 
   saving from Block Editor

#### 3.1.17

 * UPDATE – Changed the filter name from wc_pay_per_post_hide_item_meta to wc_pay_per_post_show_item_meta
   for easier readability
 * BUGFIX – Fixed bug which shortcodes with different parameters would overwrite
   the transient. Unique transients are now in place for all variations of shortcode
   attributes.
 * BUGFIX – Updated logic which would cause specific installs it WooSubscriptions
   to allow access to content after a subscription has expired.
 * UPDATE – completely reworked all of the protection checks. Please double check
   your site to ensure everything works correctly.

#### 3.1.16

 * HOTFIX – Fixed issue where protected content does not show up in email and order
   confirmation since new filter was added.

#### 3.1.15

 * BUGFIX – Fixed a bug which protected content would still be visible when subscription
   expires for some installs.
 * BUGFIX – Fixed a bug that wouldn’t allow admins to view protected content if 
   content was expired.
 * BUGFIX – Fixed issue where the users page views on user profile wouldn’t show
   up in certain circumstances.
 * UPDATE – Reworked logic and variables to make it easier to understand

#### 3.1.14

 * FEATURE – Added new filter to easily disable the purchased content from being
   output in checkout confirmation and email. wc_pay_per_post_hide_item_meta

#### 3.1.13

 * HOTFIX – Fixes fatal error that happens on some installs with colliding vendor
   packages.

#### 3.1.12

 * BUGFIX – Addressed issue where purchased content link sometimes still showed 
   up in order email when cancelling order.
 * BUGFIX – Fixed issue where on specific installs having a subscription product
   and standard product would cause the post not to be unprotected on purchase.
 * BUGFIX – Fixed PHP Warning message
 * UPDATE – Prefixed all namespaces to prevent unwanted vendor collisions
 * FEATURE – Compatibility with new WooCommerce High-Performance Order Storage (
   HOPS)
 * FEATURE – Body classes are now added to all protected posts ‘ppp-protected’, 
   and ‘ppp-has-access’ if they have access and ‘ppp-has-no-access’ if they do not
   have access

#### 3.1.11

 * UPDATE – Updated third-party dependencies to latest versions (Freemius 2.5.9 
   to 2.5.10, Carbon 2.67.0 to 2.68.1)

#### 3.1.10

 * UPDATE – Updated third-party dependencies to latest versions (Freemius 2.5.7 
   to 2.5.9, Carbon 2.66.0 to 2.67.0)
 * UPDATE – Fixed PHP Warning with Elementor integration
 * UPDATE – Confirmed Working with WC 7.8x, El 3.14.x, El Pro 3.14.x

#### 3.1.9

 * UPDATE – Reworked code to check if a subscription product was purchased.
 * UPDATE – Corrected multiple typos and issues found in Phpcs
 * UPDATE – Confirmed working with latest WP and WC
 * UPDATE – Updated third-party dependencies
 * BUG FIX – Fixed issue which access was still granted if a subscription was canceled
   on certain installs.
 * BUG FIX – Fixed bug where filters for showing shortcodes on my account pages 
   were incorrectly being called.
 * BUG FIX – Fixed bug where comments would still show but the ability to post new
   comments was not shown. Now comments are hidden.

#### 3.1.8

 * UPDATE – Block editor integration now follows post type and roles set in settings
   and filters.
 * UPDATE – Added in warning for when utilizing block editor on custom post types
   that do not support custom fields
 * BUG FIX – Fixed issue with inline shortcode protecting entire page.

#### 3.1.7

 * UPDATE – Set defaults for new checkboxes in settings screen.
 * UPDATE – Added in notice on admin page for Custom Post Types, that any Custom
   Post type needs to support custom fields in order to save from the Block Editor.
 * UPDATE – Added in CSS classes to be able to target shortcode h3 tags class=”wc-
   ppp-my-account-shortcode-heading”
 * UPDATE – Added in setting to disable new Block Editor integration.

#### 3.1.6

 * FEATURE – Fully integrated Block Editor metabox. The metabox is now in the sidebar
   rather than at the bottom of the page.
 * FEATURE – Added in filter wc_pay_for_post_the_content_priority which you can 
   set the priority of when the protection check on the_content filter is fired.
 * FEATURE – Added in filter wc_pay_for_post_is_frontend_edit that allows you to
   define if the post is being edited in frontend, instead of backend. This is to
   assist with other page builders.
 * UPDATE – Updated the filter priority for the_content filter from 10 to 99
 * UPDATE – Updated logic for detecting protected posts. This should help with other
   page builder integrations.
 * UPDATE – Updated third-party libraries to the latest versions.
 * UPDATE – Updated Debug Log, now requires you to add ?wc-ppp-debug=true to your
   URL to log to debug file. This will make it much easier to debug on a live site.
 * UPDATE – Transients for shortcodes will automatically clear after post edit. 
   Can be disabled using filter wc_pay_per_post_clear_transients_on_post_edit
 * BUGFIX – Fix for entire page priority protection over elementor widget protection.
 * BUGFIX – Fix for paywall in Elementor protected widgets.
 * BUGFIX – Fix for DIVI builder integration.
 * BUGFIX – Fix for Beaver builder integration.

#### 3.1.5

 * FEATURE – Added new filter wc_pay_for_post_show_paywall_in_archives which allows
   you to control if content get protected in archives showing full post content.
   Defaults to true;
 * BUG FIX – Fixed bug in premium version which viewing protected content from admin
   and only showing the admin user as the customer.
 * BUG FIX – Fixed bug which was causing some page builders not to render protected
   content correctly.
 * UPDATE – Updated Elementor integration to now clearly show which elements are
   protected by outlining them in red.
 * UPDATE – Added Filter wc_pay_for_post_show_paywall_in_archives to indicate if
   paywall should show in archives or not, default is true

#### 3.1.4

 * HOTFIX – Bug with is_protected protection check returning false in some instances
   when it should be true.

#### 3.1.3

 * BUG FIX – Fixed PHP notices in error_log for when no products associated with
   post.
 * UPDATE – Updated logic for when protected posts are being pulled in via third
   party shortcode to allow protection settings to be checked for embedded posts.

#### 3.1.2

 * BUG FIX – Addressed bug with custom post types and standard protection
 * BUG FIX – Addressed bug with has_access and purchased shortcodes not displaying
   correct products in some cases.
 * BUG FIX – Removed Premium name from Free version

#### 3.1.1

 * BUG FIX – Fixed bug in premium version which expiration protection was throwing
   fatal error.

#### 3.1.0

 * UPDATE – Updated Freemius, Monolog and Carbon libraries to the latest versions
 * UPDATE – Confirmed working with WooCommerce 6.8+, WordPress 6.0+, and (Pro Version
   of pay for post) Elementor 3.7.5
 * UPDATE – Significant refactoring to improve overall performance.
 * UPDATE – Performance updates for sites with heavy Elementor usage.
 * UPDATE – Changed default transient expiration time from 1 day to 1 hour
 * UPDATE – Added in a lot more debugging logs for when investigating issues
 * UPDATE – Elementor support for Pro users now can easily see which elements are
   protected

#### 3.0.10

 * BUG FIX – Fixed issue with extreme slowness with WooSubscriptions running
 * UPDATE – Added compatibility filter for page builders to disable plugin programmatically
 * BUG FIX – Fixed shortcode ordering, was using post_date instead of just date
 * FEATURE – Added in ability to bypass transients on shortcodes using flag `bypass_transients
   ='true'`
 * BUG FIX – Adjusted shortcode flags to be case-insensitive

#### 3.0.9

 * UPDATE – Updated all third party SDKs
 * UPDATE – Updated Elementor integration to account for meta_box_roles filter.
 * BUG FIX – Corrected issue with pagination and deleting page views on user profiles
 * BUG FIX – Fixed PHP Notice Error for undefined transient variable
 * BUG FIX – Fixed PHP error when viewing protected content panel and elementor 
   protection
 * UPDATE – Updated translation POT files

#### 3.0.7

 * UPDATE – Accounted for the use of tag AND category filters in shortcodes with
   new transient caching.

#### 3.0.6

 * BUGFIX – Reworked how transients are stored to account for premium shortcode 
   usage
 * BUGFIX – Corrected PHP warnings with array vs string
 * FEATURE – Added in transient clear/refresh to debug page
 * UPDATE – Updated all third-party libraries

#### 3.0.5

 * UPDATE – Added in additional logic to enhance performance on Elementor integrations
 * UPDATE – Reworked admin logic to improve performance
 * UPDATE – Pay for Post pages are now stored in a transient for faster lookups 
   with a 1 day cache
 * UPDATE – Added in new filter called wc_pay_per_post_posts_transient_time which
   can be used to set the cache expiration
 * UPDATE – Added in more debugging when debug mode is enabled

#### 3.0.4

 * BUGFIX – Fixed PHP non-countable Warning
 * BUGFIX – Reworked how product_ids are found in Elementor element data
 * BUGFIX – Fixed bug which would show not purchased when the user has purchased.

#### 3.0.3

 * BUGFIX – Fixed tricky bug with Elementor that could have improperly marked a 
   page as protected
 * UPDATE – Added in a bunch more debug logging around Elementor

#### 3.0.2

 * BUGFIX – Fixed PHP Warning when activating with Elementor pages
 * BUGFIX – Made sure protection only happens on specified post types set in admin.
 * BUGFIX – Fixed issue with Elementor protecting entire page.
 * UPDATE – added in filter wc_pay_per_post_force_elementor_full_page_protection
   to allow people to still use full page elementor protection if necessary. The
   default is now false.

#### 3.0.1

 * BUGFIX – Fixed noInspection PHPInclude text from being displayed in admin.

#### 3.0.0

 * UPDATE – PHP Version 7.2+ is now required. This could be a breaking change for
   some people. Upgrade PHP to latest version.
 * UPDATE – New filter wc_pay_per_post_all_product_args to allow for filtering what
   products show up in the product meta box
 * UPDATE – New filter wc_pay_per_post_paywall_icon to allow you change the icon
   used for locked posts.
 * UPDATE – Reworked the is_subscriber() function to be more performant, thanks @
   Konrad
 * UPDATE – Updated Select2 and DataTables library
 * UPDATE – New shortcode wc_pay_per_post_apply_the_content_filter_to_inline_shortcode
   to disable the_content filter from being applied to inline-shortcode output
 * UPDATE – Updated default protected content message to include the column parameter[
   products ids='{{product_id}}’ columns=’1′]
 * PREMIUM FEATURE – All new Elementor integration! You can now protect any block
   in Elementor!
 * PREMIUM UPDATE – Completely rewrote the expiration protection to upgrade to Carbon
   2.0!
 * PREMIUM UPDATE – Made the shortcode [wc-pay-for-post-product-unlocks] able to
   handle variable products
 * PREMIUM UPDATE – Now possible to associated VARIABLE subscription products with
   posts.
 * PREMIUM UPDATE – Added in new filter wc_pay_per_post_allowed_roles_for_user_profile_edit
   to allow to control which roles can see user edit page views
 * BUG FIX – Fixed logic relating to multiple page views on page view tracking on
   some themes
 * BUG FIX – Fixed issue which displaying the shortcode has_access would actually
   count a pageview
 * BUG FIX – Fixed bug when wanting to protect whole page in Elementor
 * BUG FIX – Updated premium code to remove php warnings when viewing protected 
   content admin page.
 * BUG FIX – Added in fallback for when the last purchase date can not be found.
 * BUG FIX – Fixed French translation on default restricted content shortcode.
 * BUG FIX – Corrected issue in shortcode-all file which incorrectly referenced 
   the post object as an array
 * BUG FIX – Fixed issue which if using page view protection and the order_date 
   was not found, access to content could be had.
 * BUG FIX – Fixed PHP Notice when viewing user profile and there was no page views.
 * BUG FIX – Correct URL for adding new product link if using a wordpress install
   in sub folder
 * BUG FIX – Added in logic to account for the pending-cancel status for woo subscriptions
 * BUG FIX – Corrected issue with 500 error when using the REST API to pull products
   WHILE using the product unlocks shortcode.
 * BUG FIX – Addressed issue with incorrect product_id being used when browsing 
   archive views and using full content
 * BUG FIX – Updated translation for shortcode on French .po file
 * BUG FIX – Updated expiration-status template to account for when a user has access
   and there is no actual purchase date

#### 2.6.8

 * UPDATE – Confirmed working with WC 4.7x
 * BUGFIX – Fixed bug with inline shortcode and elementor displaying whole page 
   content in editor
 * BUGFIX – Fixed PHP Warning when saving post protected by pay for post

#### 2.6.7

 * BUG FIX – Fixed javascript error due to missing DataTables.

#### 2.6.6

 * UPDATE – Updated the filter variables for wc_pay_per_post_hide_item_meta_in_email
   to remove php warnings

#### 2.6.5

 * BUG FIX – Version number bump, for some reason several users are not getting 
   the full release for 2.6.4 so I am bumping the version number to force the new
   download.

#### 2.6.4

 * PREMIUM FEATURE – Added in a Purchased Content tab to admin to show protected
   pages and what users purchased them. This is still in active development!
 * PREMIUM FEATURE – Added in new premium shortcode wc-pay-for-post-product-unlocks
   which you can embed on your product page to show what content purchasing this
   product unlocks.
 * PREMIUM FEATURE – Added in new option in settings for displaying a lock icon 
   next to protected post titles
 * BUG FIX – Fixed long standing bug with expiration protection products not showing
   up in has access shortcode!!!
 * UPDATE – Added the class locked or unlocked to the shortcode list for ALL Protected
   Content
 * UPDATE – Ensured compatibility with WooCommerce 4.6.x
 * UPDATE – Updated to latest version of DataTables
 * UPDATE – Updated to latest version of Freemius SDK

#### 2.6.3

 * UPDATE – With the change of the purchased shortcode, the tab in woocommerce my
   account has now changed. It will now display both protected and has access products.
   With this we have added in additonal filters.
 * NEW FILTER – wc_pay_per_post_my_account_show_has_access – return true/false for
   displaying the has access shortcode on tab
 * NEW FILTER – wc_pay_per_post_my_account_show_purchased – return true/false for
   displaying the has purchased shortcode on tab
 * NEW FILTER – wc_pay_per_post_my_account_has_access_title …

## Commercial plugin

This plugin is free but offers additional paid commercial upgrades or support. [サポートを表示する](https://pramadillo.com/support/)

## メタ

 *  バージョン **3.3.0**
 *  最終更新日 **2週間前**
 *  有効インストール数 **1,000+**
 *  WordPress バージョン ** 3.8またはそれ以降 **
 *  検証済み最新バージョン: **7.1.4**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/woocommerce-pay-per-post/)
 * タグ
 * [sell content](https://ja.wordpress.org/plugins/tags/sell-content/)[woocommerce](https://ja.wordpress.org/plugins/tags/woocommerce/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/woocommerce-pay-per-post/advanced/)

## 評価

 5つ星中4.7つ星

 *  [  49 5-星レビュー     ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/?filter=2)
 *  [  4 1-星レビュー     ](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/)

## 貢献者

 *   [ Matt Pramschufer ](https://profiles.wordpress.org/mattpramschufer/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/woocommerce-pay-per-post/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mattpram%40gmail%2ecom)