WordPress plugin intelligence profile

Page Restrict for WooCommerce

Restrict access to your WordPress pages using WooCommerce products.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.7.4
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 4.8.12 · PHP 7.0.25
Directory statusactive
Last directory update7 Jun 20264mo ago
Active installations700Adoption metric — not a quality score
WordPress.org rating4.7 / 5 from 23 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Page Restrict for WooCommerce version 1.7.4 as active, updated 4mo ago and tested up to WordPress 7.0.

Overview

About this plugin

Page Restrict for WooCommerce is a plugin that sells access to pages, posts and custom post types through WooCommerce. It’s been built with Gutenberg in mind as well as the classic editor. You can restrict pages in two ways.

Restrict an entire page or restrict sections on the page. In case you want to restrict sections on the page you can use blocks for the Gutenberg editor and using shortcodes for the classic or similar editors. If you want to restrict entire pages you can use enable the sidebar in the More tools & options in the Gutenberg editor or use the page metabox in the classic editor.

You can also restrict all of your pages in one place in the Pages plugin menu.

Requirements

  • WooCommerce to be installed and active
  • Guest checkout needs to be disabled
  • PHP 7.0.25+.

Features

  • Restrict content from pages, posts and custom post types based on if they have purchased a specific WooCommerce product
  • Restrict entire page or just sections of it
  • Use one or multiple products to restrict it and choose whether you want to require the user to buy all of them to access or at least one of the products that restrict.
  • Restrict by time – Set a time limit for the user after which they won’t be able to see the content.
  • Restrict by views – Set a view count for the user after which they won’t be able to see the content ( currently only if you want to restrict entire pages ).
  • Use other pages or posts for specific pages as Restricted Messages
  • Use default pages or posts for all restricted pages as Restricted Messages
  • Redirect to the chosen page instead of just showing the other pages content
  • Built for use with the latest Gutenberg editor as well as the classic one
  • Use either Gutenberg blocks or shortcodes to restrict sections on a page or post
  • Plugin menu page to handle all pages you need to restrict in one place called Pages
  • Plugin menu page to get an overview of all users that bought a product required to access an restricted page which either is still valid or already expired called User Overview.
  • Similar feature to User Overview for the frontend for each user to have an overview of their pages where they bought products in order to access them.
  • A Quick Start menu page to get you started on using this plugin

Blocks

page-restrict-wc/restrict-section

Section Restrict for WooCommerce – Restricts a section on the page using this grouping element.

page-restrict-wc/restricted-pages-list

Restricted Pages List – Shows a table of restricted pages for the current user which have had bought products for.

Shortcodes

[prwc_is_purchased products=”1,2″ days=”25″ hours=”2″ minutes=”45″ seconds=”15″ inverse=”false” defRestrictMessage=”Restrict Message” notAllProductsRequired=”false” defaultPageNotBoughtSections=”4″ defaultPageNotLoggedSections=”5″]

  • Restricts the content using the chosen options.
  • products – choose which products to restrict with. Add product IDs separated by a comma.
  • Timeout options for this are days, hours, minutes, seconds.
  • inverse – using the inverse option you can choose inverse=”false” to hide the content in order for the user to not see it. Choose inverse=”true” for the user to see it in order to show them instructions on what to do to access the desired content you chose using inverse=”false”
  • defRestrictMessage – is the message you want to show if the user didn’t buy the product.
  • notAllProductsRequired – set to true if the user doesn’t need to buy all products.
  • defaultPageNotBoughtSections – you can choose a page to show instead of a message like in defRestrictMessage.
  • defaultPageNotLoggedSections – you can choose a page to show if the user isn’t logged in.

[prwc_restricted_pages_list table=”time” disable_table_class=”false”]

  • Shows a table of restricted pages for the current user which have had bought products for.
  • Using the table attribute you can choose which table of restricted page you will show. It can show pages that are restricted either by time or view count.
  • Using disable_table_class attribute you can choose whether to kepp or not to keep the default plugin style for the tables.
  • You can show restricted pages that timeout either by time or view.

Coming soon

  • Restrict categories
  • Restrict authors
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • pages
  • pay
  • product
  • restrict
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 4.8.12 · PHP 7.0.25
Update activity7 Jun 20264mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.