Title: Page Restrict for WooCommerce
Author: Vlado Grcic
Published: <strong>2 أبريل، 2020</strong>
Last modified: 7 يونيو، 2026

---

البحث عن الإضافات

![](https://ps.w.org/page-restrict-for-woocommerce/assets/banner-772x250.png?rev
=2274512)

![](https://ps.w.org/page-restrict-for-woocommerce/assets/icon.svg?rev=2274512)

# Page Restrict for WooCommerce

 بواسطة [Vlado Grcic](https://profiles.wordpress.org/vladogrcic/)

[تنزيل](https://downloads.wordpress.org/plugin/page-restrict-for-woocommerce.1.7.4.zip)

 * [تفاصيل](https://ar.wordpress.org/plugins/page-restrict-for-woocommerce/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/page-restrict-for-woocommerce/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/page-restrict-for-woocommerce/#installation)
 * [التطوير](https://ar.wordpress.org/plugins/page-restrict-for-woocommerce/#developers)

 [الدعم](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/)

## الوصف

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

## لقطات الشاشة

[⌊Plugin pages menu page⌉⌊Plugin pages menu page⌉[

Plugin pages menu page

[⌊Plugin user overview menu page⌉⌊Plugin user overview menu page⌉[

Plugin user overview menu page

[⌊My account user overview page⌉⌊My account user overview page⌉[

My account user overview page

[⌊Plugin quick start menu page⌉⌊Plugin quick start menu page⌉[

Plugin quick start menu page

[⌊Gutenberg sidebar - Products - Restrict with⌉⌊Gutenberg sidebar - Products - Restrict
with⌉[

Gutenberg sidebar – Products – Restrict with

[⌊Gutenberg sidebar - Page to Show - Restrict message pages⌉⌊Gutenberg sidebar -
Page to Show - Restrict message pages⌉[

Gutenberg sidebar – Page to Show – Restrict message pages

[⌊Gutenberg sidebar - Timeout - Time until restriction expires⌉⌊Gutenberg sidebar-
Timeout - Time until restriction expires⌉[

Gutenberg sidebar – Timeout – Time until restriction expires

[⌊Gutenberg block⌉⌊Gutenberg block⌉[

Gutenberg block

[⌊Gutenberg block - General block settings⌉⌊Gutenberg block - General block settings⌉[

Gutenberg block – General block settings

[⌊Gutenberg block - Products - Restrict with⌉⌊Gutenberg block - Products - Restrict
with⌉[

Gutenberg block – Products – Restrict with

[⌊Gutenberg block - Timeout - Time until restriction expires⌉⌊Gutenberg block - 
Timeout - Time until restriction expires⌉[

Gutenberg block – Timeout – Time until restriction expires

[⌊Classic metabox⌉⌊Classic metabox⌉[

Classic metabox

[⌊Plugin settings⌉⌊Plugin settings⌉[

Plugin settings

## المكوّنات

تقدّم هذه الإضافة مكوّنين اثنين (2).

 *   Restrict Section for WooCommerce
 *   Restricted Pages List

## التنصيب

 1. Upload the plugin files to the “/wp-content/plugins/page-restrict-for-woocommerce”
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the “Plugins” screen in WordPress
 3. Use the Settings –> Page Restrict screen to configure the plugin
 4. You can go to Settings –> Page Restrict –> Quick Start to get a head start on how
    to use this plugin

## الأسئلة المتكررّة

### Do you have a premium version of the plugin?

No, there isn’t any.

## المراجعات

![](https://secure.gravatar.com/avatar/c5a5c374a7b759036099a4c19dd1d336f6cf0c87af13d932f1d2b7b1c09edb30?
s=60&d=retro&r=g)

### 󠀁[Excellent, but…](https://wordpress.org/support/topic/excellent-but-32/)󠁿

 [momo-fr](https://profiles.wordpress.org/momo-fr/) 16 يوليو، 2026

This extension is excellent, but its ergonomics are tricky and the design used is
out of context with WordPress, resulting in very difficult-to-read texts, that’s
not good.

![](https://secure.gravatar.com/avatar/5766647507056b4aa68787695406ff2496ed1d415e96bd4db71596a6cf9ed8d5?
s=60&d=retro&r=g)

### 󠀁[Sencilla y efectiva](https://wordpress.org/support/topic/sencilla-y-efectiva-2/)󠁿

 [jajavier](https://profiles.wordpress.org/jajavier/) 1 يناير، 2026

Sin complicaciones. Fácil de configurar y poner en marcha y tremendamente efectiva.
Perfecta para lo que necesitaba.

![](https://secure.gravatar.com/avatar/69b74a8b449201f3e9e4c562803d8ede0bb97bd5ad04af631f12d6a7cac673ea?
s=60&d=retro&r=g)

### 󠀁[It does exactly what it says in the tin](https://wordpress.org/support/topic/it-does-exactly-what-it-says-in-the-tin-13/)󠁿

 [danielepais](https://profiles.wordpress.org/danielepais/) 4 ديسمبر، 2025

Excellent and refined plugin that does exactly what it says. Grants permission to
a page provided a product assigned to it has been purchased. Exactly what we needed.

![](https://secure.gravatar.com/avatar/63f65aaaacdcd442226ee28ad4e6b10c09abc7ee09b7c7d94ae3fb3e147150e5?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed to lock a page before purchase](https://wordpress.org/support/topic/exactly-what-i-needed-to-lock-a-page-before-purchase/)󠁿

 [ywamer](https://profiles.wordpress.org/ywamer/) 6 مايو، 2025

Works perfectly. It was just updated. And it's free! A+ There are number of paid
plug-ins like Pay for Post that do a similar job, although with less functionality.
This plug-in is free, contains no ads or bloatware, customizes the customizes My
Account page, and does everything I need. Thank you! If I had one suggestion, it
would be to allow me to customize the text of the new 'Restricted Pages' tab in 
my account section to something suited to my use car, such as 'Allowed Pages' or'
Your Items'. I can do this myself by modifying the plug-in, which I may mess around
with, but would be GREAT to have this as an option in the settings section.

![](https://secure.gravatar.com/avatar/96f06b2efdea8ba68818061b42342c7ed319a19419f89baca1d9365f9cdcfa3b?
s=60&d=retro&r=g)

### 󠀁[Good work](https://wordpress.org/support/topic/good-work-813/)󠁿

 [karoldomag](https://profiles.wordpress.org/karoldomag/) 19 أبريل، 2025

Very useful plugin with a lot of features. Still some minor issues but great work
overall.

![](https://secure.gravatar.com/avatar/517833f1afc6f436ca8b77a9a60a173d0c70d539ea0ba8d6716f1c918a4940f9?
s=60&d=retro&r=g)

### 󠀁[very nice plugin but,](https://wordpress.org/support/topic/very-nice-plugin-but-4/)󠁿

 [jenomal](https://profiles.wordpress.org/jenomal/) 1 أبريل، 2025

is it still supported and will it bring new features?

 [ إقرأ جميع المراجعات 23 ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/)

## المساهمون والمطوّرون

“Page Restrict for WooCommerce” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل
في هذه الإضافة.

المساهمون

 *   [ Vlado Grcic ](https://profiles.wordpress.org/vladogrcic/)

لقد تم ترجمة ”Page Restrict for WooCommerce“ إلى لغة واحدة. شكراً إلى جميع [المُترجمين](https://translate.wordpress.org/projects/wp-plugins/page-restrict-for-woocommerce/contributors)
لمُساهماتهم.

[ترجمة ”Page Restrict for WooCommerce“ إلى لغتك.](https://translate.wordpress.org/projects/wp-plugins/page-restrict-for-woocommerce)

### مُهتم بالتطوير؟

[تصفّح الشفرة](https://plugins.trac.wordpress.org/browser/page-restrict-for-woocommerce/)،
تحقق من [مستودع SVN](https://plugins.svn.wordpress.org/page-restrict-for-woocommerce/)،
أو الاشتراك في [سجل التطوير](https://plugins.trac.wordpress.org/log/page-restrict-for-woocommerce/)
بواسطة [RSS](https://plugins.trac.wordpress.org/log/page-restrict-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## سجل التغييرات

#### 1.7.4

 * Fixed issue where sidebar lock by product doesnt save all products to db.

#### 1.7.3

 * Added cache flushing and fixes.

#### 1.7.2

 * Fixed issue with gutenberg products page option.

#### 1.7.1

 * Fixed priority issue with other plugins.

#### 1.7.0

 * Added feature for chosen users to be able to see restricted pages regardless 
   of restriction.

#### 1.6.7

 * Fixed sidebar not loading.
 * Update class-front.php.
 * Fixed WC “High-Performance Order Storage (HPOS)” incompatibility issue.
 * Fixed wording of already expired pages.

#### 1.6.6

 * Possible fix for page slowdown for unregistered users.

#### 1.6.5

 * Fixed count error for view restriction.

#### 1.6.4

 * Fixed some warnings.

#### 1.6.3

 * Added notice for custom post types where the feature “Custom Fields” is missing.

#### 1.6.2

 * Fixed “PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack)
   must be of type array…” error.

#### 1.6.1

 * Fixed undefined array key 0 that happened.

#### 1.6.0

 * Added prwc_restricted_pages_products shortcode.
 * Minor fixes

#### 1.4.13

 * Fixed “Lock by Products” not able to accept more than 1 product on “Pages” page.

#### 1.4.12

 * Fixed Time Table not showing pages with bought products with no expiration.

#### 1.4.11

 * Fixed issue with $all_pages.

#### 1.4.10

 * Fixed issue with not bought and not logged in restrict message options not showing
   any pages on the classic editor.
 * Added further warnings for redirecting to private pages.
 * Removed unused code (future feature).
 * Refactored “Quick Start” page.

#### 1.4.9

 * Fixed issue where the list of pages isn’t the same in the Pages page and the 
   Settings page.

#### 1.4.8

 * Performance fixes. It should be considerably faster now.
 * Fixed various PHP warnings.

#### 1.4.7

 * Fixed bool passed to count error.

#### 1.4.6

 * Fixed custom post types not showing in “User Overview” and “Page Restrict” page
   on My Account.

#### 1.4.5

 * Added features to view ant time table on My Account page.
 * Fixed issue with loading a limited number of pages for views.
 * Rephrased the “Not all products required” option description in the Quick Start
   page.
 * Fixed shortcode issue on Quick Start page.
 * Translation fixes.

#### 1.4.4

 * Fixed showing pages when product wasn’t bought.
 * Fixed “ModuleNotFoundError: Module not found: Error: Can’t resolve ‘react’ in”
   which seems to happen in the admin/assets/src/scss/admin.scss file.
 * Changed Quick Start text.

#### 1.4.3

 * Fixed translation issues.

#### 1.4.2

 * Fixed issue with User Overview page not showing pages restricted by products.

#### 1.4.1

 * Fixed problems with Views tab in User Overview that prevents from showing users
   that bought product unless they viewed the page at least once.
 * Smaller design issues (horizontal bar in User Overview).
 * My Account fixes.

#### 1.4.0

 * Design changes.
 * Showing order, product ids on User Overview page.
 * Refactored variables
 * Fixed issues with my-account Page Restrict tab.
 * Design changes to “User Overview” page.

#### 1.3.5

 * Fixed issue with “User Overview” not showing users correctly, restricting also
   didn’t work.
 * Some minor refactoring
 * Design changes to “User Overview” page.
 * Language files update.

#### 1.3.4

 * Fixed issue with reverse block where it doesn’t show for guests.

#### 1.3.3

 * Fixed “My Account” pages restricted pages list page not showing active restricted
   pages at all.

#### 1.3.2

 * Fixed issue where the “User Overview” page would be empty if timeout would not
   be set. It should be able to show if you only need to show if product purchased.
 * Fixed issue with incorrect expiration time.

#### 1.3.1

 * Updated Javascript dependencies.
 * Removed unnecessary code.

#### 1.3.0

 * Updated the React JS code to be in JSX.
 * Some smaller changes.

#### 1.2.0

 * Adding “Not all products required” feature.
 * Fixed bugs
    - Fixed problems with existing products bought checking. It counted only the
      first full set of products if users needed to buy multiple products.
    - Incorrect order list.

#### 1.1.1

 * Fixed Quick Start text.
 * Fixing bugs.
    - Fixed incorrect namespace used.
    - Fixed guest users executing table list code.
    - Fixed $_POST not having nonce.

#### 1.1.0

 * Admins now can see which users have bought products needed to access pages. It
   shows users who recently bought it and are valid as a blue color and the users
   who have expired pages have those in red.
 * Regular users can see their bought (expired or still valid) pages for their account
   as well. They can see it in their WooCommerce My Account page, or on a separate
   page using a Gutenberg block or shortcode.
 * Added animation for pagination.
 * Fixed not removing everything on uninstall.
 * Fixed adding data that is not needed.

#### 1.0.0

 * Initial commit.

## ميتا Meta

 *  Version **1.7.4**
 *  Last updated **قبل 5 أشهر**
 *  Active installations **700+**
 *  WordPress version ** 4.8.12 أو أعلى **
 *  Tested up to **7.0.8**
 *  PHP version ** 7.0.25 أو أعلى **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/page-restrict-for-woocommerce/) 
   و [Russian](https://ru.wordpress.org/plugins/page-restrict-for-woocommerce/).
 *  [ترجمة إلى لغتك](https://translate.wordpress.org/projects/wp-plugins/page-restrict-for-woocommerce)
 * Tags
 * [pages](https://ar.wordpress.org/plugins/tags/pages/)[pay](https://ar.wordpress.org/plugins/tags/pay/)
   [product](https://ar.wordpress.org/plugins/tags/product/)[restrict](https://ar.wordpress.org/plugins/tags/restrict/)
   [woocommerce](https://ar.wordpress.org/plugins/tags/woocommerce/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/page-restrict-for-woocommerce/advanced/)

## التقييم

 4.7 من 5 نجوم.

 *  [  20 5-star reviews     ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/)

## المساهمون

 *   [ Vlado Grcic ](https://profiles.wordpress.org/vladogrcic/)

## الدعم

مشكلات تمّ حلها في آخر شهرين:

     0 من 2

 [عرض منتدى الدعم](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/)