前言介紹
- 這款 WordPress 外掛「Page Restrict for WooCommerce」是 2020-04-01 上架。
- 目前有 600 個安裝啟用數。
- 上一次更新是 2025-04-13,距離現在已有 20 天。
- 外掛最低要求 WordPress 4.8.12 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0.25 以上。
- 有 19 人給過評分。
- 論壇上目前有 3 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
pay | pages | product | restrict | woocommerce |
內容簡介
e default message shown to users who do not have access to the content
notAllProductsRequired – choose whether users have to buy all products in order to access the content or just one of them
defaultPageNotBoughtSections – choose how many sections of the page to show by default when user has not bought the required product yet
defaultPageNotLoggedSections – choose how many sections of the page to show by default when user is not logged in yet
[prwc_is_expired products=”1, 2″]
Checks if the user’s access to the content has expired.
products – choose which products to check for expiration. Add product IDs separated by a comma.
[prwc_is_restricted products=”1, 2″]
Checks if the user is restricted from accessing the content.
products – choose which products to check for restriction. Add product IDs separated by a comma.
[prwc_restrict_message]
Shows the restricted message which is set in the plugin settings.
[prwc_restrict_link use_default_title=”true”]
Shows a link to the WooCommerce product used to restrict access to the content.
use_default_title – choose whether to use the default product title for the link or not
原文外掛簡介
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Page Restrict for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.1.1 | 1.2.0 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.4.6 | 1.4.7 | 1.4.8 | 1.4.9 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.6.5 | 1.6.6 | 1.6.7 | 1.7.0 | 1.4.10 | 1.4.11 | 1.4.12 | 1.4.13 |
延伸相關外掛(你可能也想知道)
WP-PageNavi 》想要取代舊的 ← Older posts | Newer posts → 連結,並改為一些頁面連結嗎?, 這個外掛提供了 wp_pagenavi() 的樣板標籤,可以產生豪華的分頁連結...。
Nested Pages 》Nested Pages 是什麼?, , , 提供直覺且易於操作的拖放介面,以管理網頁結構及文章排序, 增強了快速編輯功能, 新增可編輯、可排序的樹狀表示網站頁面結構, 會...。
Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
CMS Tree Page View 》將所有頁面和自訂文章以 CMS 樹狀概覽方式添加到 WordPress,類似於專注於頁面的 CMS 中經常找到的檢視方式。, 如果您的目標是將多個內容類型合併到單一檢視...。
Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
Widgets on Pages 》這是添加小工具到文章和/或頁面最簡單,也是評價最高的方法。您可以創建無限的動態側邊欄(小工具區域),把它們插入到 WordPress 文章或頁面中。, 從設置菜...。
Post Tags and Categories for Pages 》將文章標籤與分類套件套用於所有頁面,讓您可以使用 WordPress 原生的分類功能來分類您的頁面,並且會顯示在 WordPress 存檔查詢裡。, 這個外掛並不會自動顯...。
My Private Site 》本外掛可讓管理員將 WordPress 網站限制僅供已註冊且已登入的使用者查看,任何未登入的使用者試圖查看網站上的任何頁面、文章或其他部分,都會顯示 WordPress...。
WP PageNavi Style 》首先,我想感謝 Lester 'GaMerZ' Chan 和 scribu 為這個美麗的 WordPress 頁面導航外掛所做出的貢獻。, 使用此外掛你必須先安裝 Wp Pagenavi。 , 連結:分頁...。
Tag Pages 》此外掛讓你可以像處理文章一樣新增標籤至頁面。, 此外掛將 ‘post_tag’ 分類法加入頁面文章類型中。, 這樣就可以在新增或編輯頁面介面中顯示標籤...。
Posts in Page 》使用簡單的簡碼 (shortcodes),輕鬆地將一個或多個文章添加到任何頁面。, 支援類別 (categories)、標籤 (tags)、自訂文章類型 (custom post types)、自訂稅項...。
Page Restrict 》限制某些頁面或文章僅限登錄用戶訪問, 此外掛允許您將所有頁面/文章限制為僅限登錄用戶訪問、不限制或選擇性限制。, 在某些情況下,您可能會將 WordPress 用...。
No Page Comment 》直到最近,WordPress 提供兩種選擇:你可以默認禁用所有頁面和文章的評論和引用追蹤,或者你可以啟用它們。在WordPress 4.3 版本中,這種情況終於改變,所以...。
HTML Page Sitemap 》此簡單外掛可透過輸入簡短代碼 [html_sitemap]於網頁內容中,新增一個頁面的 HTML 網站地圖(非 XML),但不包含文章。此外掛可設定特定深度、從特定父頁面開始...。
Essential Widgets 》Essential Widgets 是一款免費的 WordPress 插件,專門用於小工具,可以讓您在網站上創建和添加有趣的小工具,使其更具吸引力和親和力。Essential Widgets 忠...。