Pay Per View

A simple pay-per-view system for charging users a one-time payment or subscription service to access some, or all of your web content.

Version 1.4.1.9

  • Add day, month, year choices to Daily Pass. Changed name to Period Pass
  • Add day, month, year choices to Subscriptions.

Changelog

April 5, 2014 - version 1.4.1.9
  • Add day, month, year choices to Daily Pass. Changed name to Period Pass
  • Add day, month, year choices to Subscriptions.

December 20, 2013 - version 1.4.1.8
  • Record user id if logged in for one time payments.
  • Added new WPMUDEV dashboard.

September 6, 2013 - version 1.4.1.7
  • Added Registration link for Wordpress login
  • Fixed problems with Twitter API 1.1 changes.
  • New version of twitteroauth library

July 2, 2013 - version 1.4.1.6
  • For subscriptions the Wordpress login is always enabled now even if API is unchecked.

June 27, 2013 - version 1.4.1.5
  • Bumped version number because of damaged zip in previous version.

June 18, 2013 - version 1.4.1.3
  • Fixed confirm button double press problem. Missing exit on wp_redirect.

May 7, 2013 - version 1.4.1.2
  • Added proper escaping to SQL
  • Broke out ChangeLog.txt
  • Standardized language file

March 22, 2013 - version 1.4.1.1
  • Transaction date fixed
  • Long post titles are not creating 10001 PayPal error now

January 4, 2013 - version 1.4.1
  • New admin warning if default permalink structure is used
  • In automatic mode, pending transactions are also accepted now. In this case admin is noticed with an email
  • Fixed an issue when cookie validity time is set as zero
  • Translation base file is now presented as ppw.pot

October 12, 2012 - version 1.4
  • New template function to be used for html codes, e.g. a video embed code
  • More php notices fixed
  • ajaxurl is now called at the correct location
  • Customization Instructions has been moved to its submenu page

September 11, 2012 - version 1.3
  • Cookie validity time is now adjustable
  • Display on home page with multiple posts behaviour changed
  • Possibility to have a custom css file outside the plugin directory added
  • Several php notices fixed
  • Broken tags in Automatic method are now automatically repaired
  • Now css and js files are only loaded to the related pages
  • Amount to be paid for One Time View is now visible on PayPal website
  • Google+ login added

April 4, 2012 - version 1.2.1
  • Fixed issue in Paypal Express when a non USD currency is selected

March 31, 2012 - version 1.2
  • Added support for custom post types
  • Removed line feeds that cause problems in poedit translation

March 20, 2012 - version 1.1
  • V1.1.0: Fixed a bug in DELETE mysql command
  • Fixed a bug when pages/posts are globally disabled and individually enabled
  • Included admin_notices method to warn admin when API login is not set
  • V1.0: Initial release

March 16, 2012 - version 1
  • Initial Release

Downloads 23,216

Compatibility WordPress 4.1.1 Multisite 4.1.1 BuddyPress 2.2.1

"I'm always amazed when I receive the email updates showing the new plugin WPMU DEV has developed or amped up."

Roy Edlund

Pay Per View lets you sell your digital content with one-time, per-post, pay-period and subscription payment options.

Monetize your content with one of the simplest tools for selling news, articles, tutorials, videos, audio clips, ebooks and anything else you can dream up.

Style to fit your theme.
Style to fit your theme.

Link and Go

Pay Per View automatically adjusts to fit your theme, offers a single configuration page for fast setup and can be custom styled for complete integration.

Just link your PayPal account and you’re ready to start charging users for access.

Setup Couldn’t be Easier

Sell digital content without having to set up a shopping cart or membership site.

Simply install and activate Pay Per View and a shortcode generator will appear in the Visual Editor for your pages and posts.

Register and login with popular social media credentials.
Register and login with popular social media credentials.

Use Social Login

Make it easy for users to register by allowing them to signup using their favorite social network credentials.

Add one-click signup with Facebook, Twitter, Google and WordPress.com credentials.

To Get Started

Start by reading Installing plugins section in our comprehensive WordPress and WordPress Multisite Manual if you are new to WordPress.

Configuring the Settings

Once installed and activated, you’ll see a new menu item in your WordPress Dashboard: Pay Per View

PayPerView Dash

After clicking Pay Per View go to the ‘General Settings’ to get your Plugin set up.

PPV Settings

6. Once you’ve completed your General Settings (which should be straight forward), you can move on to create your first post, using the Pay Per View Plugin functionality.

When creating a new post or page, there will be a new tool in your editor: The Pay Per View Selection Tool

PPV Editor button

This button is for adding Pay Per View protection to the current selected content. Upon clicking, there will be a Pay Per View pop up window that will allow you to set a brief description of the selected content, and set your price as well.

PPV Insert

Pay Per View also has some unique options in the sidebar when creating a new page or post.

1. Enabled 2. Method 3. Excerpt length 4. Price (USD)
1. Enabled
2. Method
3. Excerpt length
4. Price (USD)

1. Enabled: Selects if Pay Per View is enabled for this post or not. If ‘Follow global setting’ is selected, General Setting page selection will be valid. ‘Always enabled’ and ‘Always disabled’ selections will enable or disable Pay Per View for this post, respectively, overriding general setting.

2. Method: Selects the content protection method for this post. If ‘Follow global setting’ is selected, method selected in General Settings page will be applied. If you want to override general settings, select one of the other methods. With ‘Use Selection Tool’ you need to select each content using the icon on the editor tool bar. For other methods refer to the settings page.

3. Excerpt length: If you want to override the number of words that will be used as an excerpt for the unprotected content, enter it here. Please note that this value is only used when Automatic Excerpt method is applied to the post.

4. Price (USD): If you want to override the default price to reveal this post/page, enter it here. This value is NOT used when Selection Tool method is applied to the post.

There we have it! Click ‘Publish’ and view the final result:

Final result when using the WPMU DEV Network Theme

Final result when using the WordPress Twenty Eleven Theme

 

Using Pay-per-view Directly In Your Templates

If you want to protect content that is outside of the post content (in a custom field, for example) then you can use the template function wpmudev_ppw_html.

This function replaces the HTML with payment buttons, revealing the content only when payment is confirmed.

For example, the following the code snippet, when added to a theme template, hides a YouTube video until the $1.50 PPV fee has been paid:

<?php
if ( function_exists( 'wpmudev_ppw_html' ) ) {
$html = '<iframe width="560" height="315" src="https://www.youtube.com/embed/-uiN9z5tqhg" frameborder="0" allowfullscreen></iframe>'; // html code to be protected (required)
$id = 1; // An optional unique id if you are using the function more than once on a single page
$description = 'video'; // Optional description of the protected content
$price = '1.50'; // Optional price for a single view. If not set, price set in the post will be applied. If that is not set either, Unit Price in the Global Settings will be used.
echo wpmudev_ppw_html( $html, $id, $description, $price );
}
?> 

Note: The content is always protected regardless of the PPV settings for the page or post.

As well as protecting the content using the wpmudev_ppw_html function, you also need to ensure that the PPV stylesheet and javascript files are included in the page.  This can be done as follows:

<?php
function my_ppv_customization( ) {
global $ppw, $post;
if ( !is_object( $ppw ) || !is_object( $post ) ) return;
// Call this only for a post/page with ID 123. Change as required.
// If you omit this line, js and style files will be added to all of your pages and caching will be disabled. So it is recommended to keep and modify it for the pages you are using.
if ( $post->ID != 123 ) return;
$ppw->load_scripts_styles();
}
add_action( 'template_redirect', 'my_ppv_customization', 2 );
?> 

Pay Per View Does a Ton

Start making money from your premium content.

  • Paywall for posts
  • Paywall for pages
  • Paywall for custom post types
  • Predefine excerpt
  • Pay for site wide access
  • Period passes
  • Recurring subscription options
  • Facebook signup and login
  • Twitter signup and login
  • Google signup and login
  • WordPress.com login
  • PayPal Express checkout
  • Simple styling for PayPal
  • Transaction management
  • Styling adjusts to fit your theme
  • Build paywalls into your theme
  • In-post content paywall
  • Video file paywall
  • Audio file paywall
  • eBook paywall