WordPress Paywall Plugin

The WordPress Paywall Plugin lets visitors sign in with their subscriber account and restricts articles to signed-in subscribers or subscribers with selected products. Subscribers do not need WordPress accounts.

The plugin is installed from GitHub releases and is not yet listed in the WordPress.org plugin directory. Installation, configuration, troubleshooting and updates are described in the plugin README.

Prerequisites

The plugin relies on the INFO-Subscription managed sign-in, so the tenant needs:

  • The INFO-Subscription provisioned ADB2C, as described in the authentication quick start. Tenants using their own identity provider do not get the product claims the plugin requires.

  • Products granted to users through authorization sources. A subscriber without a mapped product authorization can sign in but does not get access to product-restricted articles.

  • Two application registrations, requested from INFO-Subscription support:

    • one in the tenant’s sign-in instance, for subscriber sign-in on the site;

    • one in the main INFO-Subscription instance with access to the tenant, used by editors to load the product list.

    The plugin settings page shows the redirect URIs to include in the request.

Article access

Each article has one of the following access modes:

  • AllAccess — anyone can read the article.

  • UserLoggedIn — the visitor must be signed in with INFO-Subscription. No product is required.

  • SelectedProducts — the visitor must have a valid authorization for at least one of the selected products.

Product authorizations are read from the sign-in token, so changes such as a new purchase take effect the next time the subscriber signs in. See Accessing Product Authorizations for how authorizations end up in the token.

Visitors without access see a teaser with sign-in and subscribe links, or are redirected to a configurable page such as a managed checkout.

Support

Report plugin issues in the plugin repository. For questions about application registrations, products or authorization sources, see Support and Reporting Bugs.