Description

Quickly and easily sell access to pages, posts and custom post types through WooCommerce with WooCommerce Pay Per Post.

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.

This plugin creates a custom field which you simply need to browse for your product, or multiple products, which are needed to be purchased in order view the post.

It checks to make sure the user is logged in, AND has purchased that particular product before. If they have, they see the general post content. If they have NOT purchased they are then displayed a Restriction Content message with a buy now button for the product.

Shortcodes

[woocommerce-payperpost template='purchased']

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

[woocommerce-payperpost template='remaining']

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

[woocommerce-payperpost template='all']

This outputs an unordered list of the posts that can be purchased by a user.

Template Functions

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.

And example of this working together would be something like the following

This is the content that a user should see if they paid for the post

Premium Features

The premium version of this plugin consists of over 300 hours of development!

Features:

  • Page View Restriction
  • Post Expiration Restriction
  • Delay Restriction
  • Powerful shortcode features
  • Ability to override restricted content message per post
  • Premium support
  • and much more!

Purchase a License

An annual licence entitles you to 1 year of updates, usage and support. Your subscription will auto-renew each year until cancelled.

  • 1 Site - $99
  • 5 Sites - $399
  • Unlimited - $599
4.7/5

4.8/5 based on 36 reviews

Helpful Links

Plugin Details

  • Version2.2.4
  • Updated8/15/2019
  • Released5/14/2014

Tested Up To

  • WordPress5.2.2
  • WooCommerce3.6.4

Requirements

  • WordPress4.8+
  • WooCommerce2.6+
  • PHP5.6+
Close Menu