Page and Post Restriction source code
By miniOrange, on WordPress.org since 2020. 1,000+ active installs.
CONTENT RESTRICTION / PAGE POST RESTRICTION | PROTECT CONTENT FOR WORDPRESS Content Restriction lets you control who can view the pages and posts of your WordPress site as they browse it. Below is its source code for every one of its 30 releases, what changed in the latest one, and how often it ships.
What changed in 1.7.0
Released Nov 25, 2026, 3 weeks after 1.6.2- Fixed a Broken Access Control that allowed restricted pages/posts to be viewed by changing the URL query parameters
- Fixed an issue with case-insensitive role-name matching for role-restricted pages/posts
3 files changed since 1.6.2: 3 modified, 0 added, 0 removed.
- page-and-post-restriction.php modified, +574 bytes
- page-restriction-constants.php modified, same size
- readme.txt modified, +446 bytes
Release history
30 releases since August 2020- 1.7.0 Nov 25, 2026 Fixed a Broken Access Control that allowed restricted pages/posts to be viewed by changing the URL query parameters
- 1.6.2 Oct 29, 2026 Fixed an issue where restricted posts were listed with their title and content on the blog home page and on category, tag, author and date archives
- 1.6.1 Oct 21, 2026 Fixed a Broken Access Control that allowed restricted pages/posts and their comments to be accessed via the REST API
- 1.6.0 Sep 29, 2026 Fixed an issue where restricted page/post content was visible to unauthenticated users through RSS/Atom feeds
- 1.5.0 Aug 25, 2026 Compatibility with 7.1
Source of 1.7.0
42 files- includes
- feedback-form.php
- index.php
- page-and-post-restriction.php
- page-restriction-category-access.php
- page-restriction-class-customer.php
- page-restriction-constants.php
- page-restriction-custom-roles-constants.php
- page-restriction-custom-roles-sub-menu.php
- page-restriction-custom-roles.php
- page-restriction-menu-settings.php
- page-restriction-page-access.php
- page-restriction-post-access.php
- page-restriction-save.php
- page-restriction-tag-access.php
- page-restriction-utility.php
- papr-abilities-api-page.php
- papr-register-abilities.php
- readme.txt
- uninstall.php