Page and Post Restriction source code

By miniOrange, on WordPress.org since 2020. 1,000+ active installs.

Browse code Download zip

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.

Compare 1.6.2 with 1.7.0

Release history

30 releases since August 2020
  1. 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
  2. 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
  3. 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
  4. 1.6.0 Sep 29, 2026 Fixed an issue where restricted page/post content was visible to unauthenticated users through RSS/Atom feeds
  5. 1.5.0 Aug 25, 2026 Compatibility with 7.1
Full Page and Post Restriction changelog with diffs

Source of 1.7.0

42 files
Browse all Page and Post Restriction 1.7.0 files Browse trunk