Pay For Post with WooCommerce

June 25, 2024

Pay For Post with WooCommerce Plugin

Sell Pages/Posts through WooCommerce 2.6+ quickly and easily. Tested up to WooCommerce Version 9.0.x

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 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!
  • 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/

Installation

  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/

Screenshots

  1. Settings Screen including premium features.

    Settings Screen including premium features.

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

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

  3. Protected Page

    Protected Page

  4. Protected Page after checkout

    Protected Page after checkout

  5. Premium Feature - WooCommerce My Account Tab

    Premium Feature - WooCommerce My Account Tab

  6. Premium Feature - WooCommerce Order Confirmation

    Premium Feature - WooCommerce Order Confirmation

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

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

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.

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.

Changelog

=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 – Default is “Content you have access to”
  • NEW FILTER – wc_pay_per_post_my_account_purchased_title – Default is “Content purchased”

2.6.2

  • IMPORTANT – Changed the way the shortcode PURCHASED works. The shortcode now returns all purchased products, not just ones the user has access to.

  • BUGFIX – Fixed issue with orders in the processing state when using Expiration protection was not getting the last order date.

  • BUGFIX – Fixed issue with shortcode not accepting multiple product ids.
  • BUGFIX – Fixed issue with inline shortcode returning content that did not process shortcodes.

  • UPDATE – Confirmed working for WooCommerce 4.5.x

  • UPDATE – Added video library to Getting Started page.

  • FEATURE – Added in new shortcode for HAS ACCESS which is what the old PURCHASED shortcode was. You can now have two shortcodes, one to show if the user has access to posts, and one to show if they purchased the product.

  • FEATURE – Added in new filters for no posts short code messages. wc_pay_per_post_shortcode_has_access_no_posts,wc_pay_per_post_shortcode_purchased_no_posts
  • FEATURE – Added in admin notification if debug mode is running in production.

2.6.1

  • HOTFIX – Duplicate filter name for wc_pay_per_post_allowed_roles, changed the newly released filter to be wc_pay_per_post_allowed_roles_for_meta_box

2.6.0

  • FEATURE – Added in filter wc_pay_per_post_allowed_roles_for_meta_box which allows users to limit the meta box from displaying to specific roles.
  • UPDATE – Confirmed working with WordPress 5.5
  • UPDATE – Confirmed everything works with WooCommerce 4.4.x
  • UPDATE – Updated to latest Freemius package
  • BUGFIX – On activation of premium plugin, the pageviews table sometimes would not get created due to foreign key restraints. We have a fallback in place now for this.
  • BUGFIX – Fixed PHP Warning on activation
  • BUGFIX – Fixed PHP Warnings on Debug Page.

2.5.9

  • UPDATE – Confirmed everything works with WooCommerce 4.3.1
  • FEATURE – Added in crude debug log viewer on debug page.
  • FEATURE – Implemented new template engine to allow for overwriting of the template through the wc_pay_for_post_locate_template filter.
  • PREMIUM FEATURE – Added in two new shortcodes for [wc-pay-for-post-status template=”expiration-status”] and [wc-pay-for-post-status template=”pageview-status”]

2.5.8

  • UPDATE – Confirmed everything works with WooCommerce 4.2.2
  • UPDATE – Wrapped Paywall content in

<

div class=”wc_ppp_paywall”> for easier styling
* FEATURE – Added a css class to paywall wc_ppp_paywall to make it easier to style
* FEATURE – Added the ability to protect attachment pages
* PREMIUM FEATURE – Inline Shortcodes for protecting content! BETA You can now protect multiple pieces of content using the shortcode [wc-pay-for-post-inline][/wc-pay-for-post-inline]!!!
* PREMIUM FEATURE – Added new filter wc_pay_per_post_modify_excerpt for modifying excerpt when using {{excerpt}}
* PREMIUM FEATURE – Added in action wc_pay_per_post_page_view_threshold_reached for when users page views reach 3 page views left
* PREMIUM FEATURE – Added in filter wc_pay_per_post_page_view_action_threshold to allow to override page_view threshold action
* PREMIUM FEATURE – Added in filter wc_pay_for_post_allowed_roles to allow specific user roles to bypass paywall
* PREMIUM FEATURE – Added in filter wc_pay_for_post_show_warnings_position to allow to control the position of the warning box either TOP of post or BOTTOM of post

2.5.7

  • BUGFIX – Correct javascript error when multiple versions of Select2 library are running

2.5.6

  • BUGFIX – Corrected PHP 7.4 error when using template tags
  • UPDATE – Added in new filter wc_pay_per_post_override_purchase_date_sql to override the purchase date SQL.

2.5.5

  • UPDATE – Added filter wc_pay_per_post_disable_in_the_loop to account for some themes that do not use the_loop
  • BUGFIX – Corrected issue of purchased content links not showing up in order emails if using a variable product.

2.5.4

  • PERFORMANCE – Refactored function that checks if post is protected to be 2x faster.
  • BUGFIX – Applied fix to account for themes that call the_content filter multiple times on page which would cause the pageview counter to fire multiple times. Thanks @Elio for the assist!
  • PREMIUM FEATURE – Added in a new short tag {{excerpt}} which will automatically pull the excerpt from the current post. This can be used in the global Restricted Content Message or in the Override Restricted Content Section.

2.5.3

  • UPDATE – Exposed ability to turn on or off tracking at a code level.
  • UPDATE – Updated all vendor files
  • BUGFIX – Addressed bug for tracking page views. Previously if you had page view to be set to one, it would actually allow two page views
  • BUGFIX – Addressed bug for pageview tracking which used a users pageview when firing the purchased_content shortcode
  • REMOVAL – Removed old database upgrade functions.

2.5.2

  • BUGFIX – Fixed issue introduced in 2.5.1 with saving product_ids not storing correctly in database.
  • SECURITY FIX – Implemented custom sanitization function for product_ids array.

2.5.1

  • PREMIUM FEATURE – Added in support for Paid Memberships Pro!
  • UPDATE – Removed all logos of WooCommerce in banner images and logos
  • UPDATE – Corrected two instances to properly sanitize data before saving in database.

2.5.0

  • UPDATE – Changed name of plugin for legal reasons. 🙁 The name going forward will be Pay For Post with WooCommerce

2.4.15

  • FEATURE – Added new filter wc_pay_per_post_woocommerce_email_args
  • FEATURE – Added new filter wc_pay_per_post_hide_delay_restricted_posts_when_paywall_should_not_be_shown
  • SECURITY FIX – Added esc_html() to page title that was outputted and not escaped.
  • UPDATE – Updated to latest version of Freemius SDK

2.4.14

  • FEATURE – Added ability to delete log file from settings page.
  • BUG FIX – Fixed CSS issue with badge icon

2.4.13

  • BUG FIX – Fixed issue with readme.txt VS README.txt on what’s new page
  • UPDATE – Accounted for post_meta being stored as boolean rather than yes/no on woocommerce items.

2.4.12

  • BUG FIX – Removed the +1 from premium page view counter
  • BUG FIX – Excluded shortcodes from processing in the admin when using builders like Gutenberg

2.4.11

  • BUG FIX – Addressed wc_pay_per_post_hide_item_meta_in_email filter bug which stopped working with 2.4 release.

2.4.10

  • BUG FIX – Correctly Addressed the issue when free version users had WooSubscriptions or WooMemberships active, and not utilizing premium version.

2.4.9

  • BUG FIX – Addressed issue when free version users had WooSubscriptions or WooMemberships active

2.4.8

  • BUG FIX – Corrected issue when Debug Mode was enabled it would throw a fatal error in Free Version
  • BUG FIX – Corrected issue of __premium_only functions not being found in free version.

2.4.7

  • Public 2.4x Release!
  • UPDATE – Complete rewrite of majority of code base to put added emphasis on scalability!
  • UPDATE – Added in Monolog Logger for more robust debugging
  • UPDATE – Updated to latest Freemius SDK for a wide range of account related updates
  • UPDATE – Made the navigation menus a bit more friendly.
  • UPDATE – Changed the logic behind has_purchased function to be has_access instead to account for Premium Membership protection.
  • PREMIUM FEATURE – Added in support for Woo Memberships!!
  • PREMIUM FEATURE – Added in support for Woo Subscriptions!!
  • PREMIUM FEATURE – Added in javascript page refresh for page expiration protection
  • PREMIUM FEATURE – Filter added wc_pay_per_post_enable_javascript_expiration_refresh to disable javascript refresh protection
  • PREMIUM UPDATE – Added in conditional logic for expiration-status partial to account for admins that have access.
  • BUG FIX – Corrected bug which would cause admin screen to refresh when viewing an expired post – Thanks @ryan!
  • BUG FIX – Corrected bug which would improperly set the expiration status of the post – Thanks @ryan!
  • BUG FIX – Corrected issue when protecting posts with membership they would not show up in purchased shortcode – Thanks @ryan!
  • BUG FIX – Fixed issue with purchased and remaining shortcode which would not display standard protection products
  • BUG FIX – If setting enabled to allow admin’s to view protected post content, then do not enforce the javascript page reloading.
  • BUG FIX – Corrected issue with expiration protection for if last purchase date was empty it would allow access to protected content. – Thanks @ryan!

2.4.6

  • BUG FIX – Corrected issue with expiration protection for if last purchase date was empty it would allow access to protected content. – Thanks @ryan!
  • UPDATE – Added in conditional logic for expiration-status partial to account for admins that have access.

2.4.5

  • BUG FIX – If setting enabled to allow admin’s to view protected post content, then do not enforce the javascript page reloading.

2.4.4

  • BUG FIX – Fixed issue with purchased and remaining shortcode which would not display standard protection products
  • FEATURE – Filter added wc_pay_per_post_enable_javascript_expiration_refresh to disable javascript refresh protection

2.4.3

  • BUG FIX – Corrected issue when protecting posts with membership they would not show up in purchased shortcode – Thanks @ryan!
  • UPDATE – Changed the logic behind has_purchased function to be has_access instead to account for Membership protection.

2.4.2

  • BUG FIX – Corrected bug which would cause admin screen to refresh when viewing an expired post – Thanks @ryan!
  • BUG FIX – Corrected bug which would improperly set the expiration status of the post – Thanks @ryan!

2.4.1

  • PREMIUM FEATURED – Added in support for Woo Memberships!!
  • PREMIUM FEATURED – Added in support for Woo Subscriptions!!
  • PREMIUM FEATURED – Added in javascript page refresh for page expiration protection

  • UPDATE – Complete rewrite of majority of code base to put added emphasis on scalability

  • UPDATE – Added in Monolog Logger for more robust debugging
  • UPDATE – Updated to latest Freemius SDK for a wide range of account related updates
  • UPDATE – Made the navigation menus a bit more friendly.

2.3.2

  • BUGFIX – Fixed issue with template replacements not working in 2.3.1

2.3.1

  • FEATURE – Added in new filter to hide the purchased content links from woocommerce receipt emails.
  • UPDATE – Refactored a ton of code for performance increases!
  • BUGFIX – Updated links in settings page to work with installs that are not in the root directory.

2.3.0

  • FEATURE – Added in Debug tools to check if page view tables are created, and if WooCommerce products are created.
  • FEATURE – Added in new shortcode parameter for the purchased shortcode, to allow to group by product ids!
  • UPDATE – Added in timezone locale to date of last purchase for page view protection
  • UPDATE – Added in WordPress Version check for the Debug Screen. Older versions of WordPress do not have SiteHealth functions.
  • UPDATE – Removed animated GIFs from getting started section and introduced more documentation at pramadillo.com
  • UPDATE – Included latest version of symfony translation library
  • UPDATE – Updated language translations to latest machine translations. If anyone is wanting to help translate please reach out!

2.2.9

  • UPDATE – Added in new Getting Started section
  • UPDATE – Added in new Debug section
  • UPDATE – Refactored functions to be more performant
  • UPDATE – Dynamically pulling in change log from README.TXT
  • UPDATE – Updated premium feature screen shots.
  • BUG FIX – Corrected issue with Polylang support which was only querying the default language.
  • BUG FIX – Fixed issue with orders in the Processing state and Page View protection
  • BUG FIX – Fixed bug which wasn’t displaying the protected content heading on the order page without filter.

2.2.8

  • PREMIUM FEATURED – Added in Polylang support

2.2.7

  • UPDATE – Added in saving permalinks after turning on the my account tab.

2.2.6

  • PREMIUM FEATURE – Added ability to have a tab on the My Account section appear with purchased content
  • PREMIUM FEATURE – Added in filter to change My Account Tab name
  • PREMIUM FEATURE – Added in two actions before and after shortcode for My Account section

2.2.5

  • PREMIUM FEATURE – Purchased content links now appear on Order Confirmation screen AND in all Order Receipt emails!
  • PREMIUM FEATURE – Added in filter to change purchased content title on emails.

  • UPDATE – Updated translations with latest content

  • UPDATE – Removed unnecessary filter call.
  • UPDATE – Added more documentation links and links to pramadillo.com for feature requests

2.2.4

  • FEATURE – Added in expiration status attribute to purchased shortcode template
  • UPDATE – Confirmed working with WooCommerce 3.7.x
  • UPDATE – Updated Symphony SDK, Carbon SDK, and Freemius SDK to latest versions

2.2.3

  • UPDATE – Updated Symphony SDK, Carbon SDK, and Freemius SDK
  • UPDATE – Limited product list meta box to only published products.

2.2.2

  • BUG FIX – Fixed issue with Fatal error when displaying pageviews remaining without having a end date
  • BUG FIX – Fixed issue where if user purchased product again, it would not reset pageviews
  • UPDATE – Updated Symphony SDK, Carbon SDK, and Freemius SDK
  • UPDATE – Confirmed working with WP 5.1.1 and WC 3.6.1

2.2.1

  • BUG FIX – Fixed issue on what’s new page and GIANT Pramadillo taking over screen on free version!
  • UPDATE – Updated Symphony SDK
  • UPDATE – Confirmed working with WP 5.1 and WC 3.5.5

2.2.0

  • BUG FIX – Fixed issue in pro version for Expiration timeframe, date/time of last order now comes from order_completed date rather than post_date
  • UPDATE – Updated Freemius SDK to latest version
  • UPDATE – Updated Carbon Library to latest version
  • UPDATE – Updated Symfony Library to latest version

2.1.16

  • BUG FIX – Fixed issue if admin’s were allowed …

Details

  • Version: 3.1.21
  • Active installations: 2,000
  • WordPress Version: 3.8
  • Tested up to: 6.5.5
  • PHP Version: 7.4

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars