WordPress Pay Per Post Plugin (CMPPP) - Use Case - How to Let Guest Users Access Paid Content


Use Case - How to Let Guest Users Access Paid Content

Back to User Guide

Requirements

This use case requires these plugins to be installed and activated:

The plugin also requires installing and using one of the following payment plugins:

Introduction

The WordPress Pay Per Post plugin allows you to charge users for accessing content on your site. The admin can set up prices for different periods of access time.

Use Case Front-End

Allowing non logged-in users to purchase access to content:

Allowing guest users to purchase access to content - Pay-Per-Post Plugin
Allowing guest users to purchase access to content

Use Case Assumptions

In this example use case guide, we'll cover how to let guests (non logged-in users) buy access to paid content.

We also consider you have already bought the plugin, but not installed it yet.

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin â†’ Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Quick Recap

In this use case guide we will focus mostly on supporting guest users.

To learn more about the plugin basic and how to configure it, please check the following use case guide:

What It Is About

By default, the plugin requires users to log in before they can purchase access to paid content. However, you can also configure it to allow guest users to access paid content without creating an account.

Keep in mind that guest access is tracked using a browser cookie, so users will lose access if the cookie is deleted or they switch devices. For this reason, we still recommend requiring users to log in whenever possible, as it is a more reliable way to manage access to paid content.

There are several ways to support guest users, including options for purchasing access, automatic registration, and asking users to log in, which we will cover one by one.

Front-end Example

Below you can see a difference between guest and logged-in users: guest users are asked to login, while logged-in users can see the subscription plans:

Front-end example - WordPress Paywall Plugin
Front-end example

Allowing Subscriptions to Guest Users

To let guest users buy access to restricted content, navigate to Admin Dashboard → CM Pay Per Posts Pro → Settings → General tab.

Navigation to the plugin settings - Paywall Plugin WordPress
Navigation to the plugin settings

Scroll down, find and enable the option Allow subscription form for guest user, then save the settings.

Allowing guest users purchase access - Best Paywall Plugin for WordPress
Allowing guest users purchase access

Now the guest user will still be asked to login, but at the same time he will be able to purchase the access and view the restricted content while being non logged-in:

Front-end result - WordPress Plugin Paywall
Front-end result

Note 1: Payment Plugins Support

Have a note that this method works only if you're using Easy Digital Downloads or WooCommerce as your payment solution. This method is not compatible with the WordPress MicroPayments plugin.

Note 2: EDD Settings

If you're using EDD settings, you need configure it in order to allow users make purchases without having an account. To do this, navigate to Admin Dashboard → Downloads → Settings → Payments → Checkout. Find the option Customer Registration and choose Allow customers to place orders without an account, then save the settings.

EDD settings - Paywalled Content
EDD settings

Registering New Users

As an alternative to letting view content as guest, you can automatically register users when they make a purchase. In this case, they will be automatically logged-in to the site after the purchase, and they will receive the registration details to their email address.

To configure it, in the same General tab of the plugin settings, find and enable the option Register and login a new user for guest client, then save the changes. Important: the above option Allow subscription form for guest user must also be enabled.

Enabling automatic user registration - Paywall Solutions for Publishers
Enabling automatic user registration

Making Login Easier for Guests

As an additional way to support guest users, you can make the login process more convenient by allowing them to log in directly from the same page. This can be done by displaying a login form right on the page or by adding a custom link to the login page or login popup. This makes it easier for users to log in and proceed with the purchase.

Enable login form below the paybox

To enable the login form, in the same general plugin settings, find and turn on the option Enable login form for guest users, then save the settings.

Enabling login form - Pay-Per-Post Plugin
Enabling login form

Now, below the paybox, the user will see a simple login form, where he can login and stay on the same page.

Front-end result - WordPress Paywall Plugin
Front-end result

Add a custom login link to the paybox message

If you don't want to display a separate login form, you can add a customizable login link into the paybox.

Examples of the login link - Paywall Plugin WordPress
Examples of the login link

To configure it, navigate to the Labels tab in the plugin settings.

Labels settings - Best Paywall Plugin for WordPress
Labels settings

Scroll down to the section Payments and find the label eddpay_activate_subscription_text_guest. Here you can configure the message and login link.

Changing the label with the login link - WordPress Plugin Paywall
Changing the label with the login link

For example, you can insert the message, where the word "login" is wrapped by the <a> tag which contains a link to the login page - it can be either standard WP page, or your custom login page.

To view this post please <a href="https://your-site.com/wp-login.php">login</a> and activate subscription.

Custom Login Form

If you are using the WordPress Registration Form Plugin, you can easily integrate it with WordPress Pay Per Post plugin to provide a smoother login experience for your users.

This plugin allows you to create custom registration and login forms for your WordPress site. It supports AJAX, so users can log in or register instantly without page reloads. Popups and a modern, customizable design make the whole process smooth and user-friendly.

Automatic Login Form Integration

When you enable the option Enable login form for guest user in Pay Per Post settings, the login form will automatically use the one from WordPress Registration Form Plugin. This allows you to offer a fully customized and better-looking login experience.

Front-end example:

Custom login form - Paywalled Content
Custom login form

Popup Login Option

You can also enhance the login process by turning the login link inside the paybox message into a popup trigger. Simply add the Registration plugin parameter as a CSS class to the login link, and clicking it will open a beautiful popup window with the login form - no page reload required.

You can use the following parameters:

  • #cmreg-login-click - To show the login and registration form side by side.
  • #cmreg-only-login-click - To show the login form only.
  • #cmreg-only-registration-click  - To show the registration form only.

Here's an example of the label configuration to display login and registration forms in a single popup:

To view this post please <a href="javascript:void(0)" class="cmreg-login-click">login</a> and activate subscription.

Front-end example:

Front-end example - Paywall Solutions for Publishers
Front-end example

End Result

Depending on the options you choose, guest users can either purchase content without registering, be automatically registered upon purchase, or log in directly on the same page or via a popup form. This gives you full flexibility in managing how users access paid content.

Use Case Front-End

Allowing non logged-in users to purchase access to content:

Allowing guest users to purchase access to content - WordPress Pay Per Post Plugin
Allowing guest users to purchase access to content

More information about the WordPress Pay Per Post Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.