Want to limit access for certain WordPress pages, posts, or content? Restricting access by user role is a common need for membership sites, LMS sites, intranets, and more.
According to 2022 statistics, over 64% of WordPress sites want to implement access and permissions by user type. However, WordPress only comes with basic access controls for private content.
In this expert guide, we will compare 3 popular plugins to easily restrict pages by user role:
- MemberPress
- Restrict Content Pro
- LearnDash
We will look at data, use cases, examples, best practices, and limitations when blocking content by user role.
Why Restrict Content by User Roles
Before diving into solutions, let us better understand the needs and use cases for access control by user type.
Popular examples include:
- Membership sites (paid subscribers get access to premium content)
- LMS and course marketplaces (students enroll in courses to unlock materials)
- Intranets and team sites (internal pages for employees based on departments)
- Community forums (special access for paying members vs non-paying members)
- Publishers and newspapers (archives for long term subscribers vs new readers)
Without plugins, WordPress only provides basic private page and post options. But this does not accommodate multiple user roles and granular access rules.
Let‘s look at some limitations when using just default user roles in WordPress:
Problems with Default WordPress User Roles
- Only allows viewing or not viewing content
- No partial or tiered access for certain user groups
- Cannot customize roles and permissions
- No integration with subscription payments
- Manual overrides required per page
As a result, sites have difficulty implementing even simple access rules like:
- Paid monthly subscribers can access Category X
- Editors can view private team pages
- Students only see enrolled course content
This is where Membership and LMS plugins shine in managing permissions.
Plugin 1: MemberPress for Tiered Access
MemberPress turns WordPress into a flexible membership platform. It is one of the most popular plugins for subscription sites and restricting access.
Key features relevant to user roles include:
✔ Create unlimited WordPress membership levels
✔ Custom roles and permissions for each level
✔ Protect content by rules like category, post type, etc.
✔ Works with all payment gateways
Use Cases and Example Sites
Popular examples using MemberPress access rules:
- News sites putting some articles for paid subscribers
- Local gyms offering virtual classes to various member tiers
- Non-profits with exclusive donor content as appreciation
- Employee portals with custom content, docs and tools access
Over 200,000+ sites leverage MemberPress currently across many industries.
Let‘s look at some examples of the permission rules you can set:
Membership Access Rules
- Category X for Gold Members
- Tag Y for Platinum Members
- Custom post type for Founding Members
Content Access Rules
- Page A for monthly members
- Private page B for annual members
- Post C for enterprise members
As you can see, very powerful and granular control over content access.
Step-by-Step Example
The easiest way is to use MemberPress membership levels and tie user roles to them.
For example:
- Set up a subscription for $20 per month
- Under Access Rules, make Category Y restricted
- Go to advanced options and choose "Author" role
- Save membership
Now any subscribed user for this plan gets the WordPress Author role. And they can access Category Y automatically.
You can follow a similar process for post types, tags, individual posts etc. And create multiple subscriptions with varied access.
Plugin 2: Restrict Content Pro for User Roles
Restrict Content Pro is a lightweight membership plugin focused solely on access restrictions by user role.
Benefits for access control:
✔ Works with default WordPress user roles out of the box
✔ Simple protection rules per post/page
✔ Free and paid versions
Use Case Examples
Some examples sites using Restrict Content Pro:
- Software blogs blocking tutorials for non-paying members
- Local sports teams sharing bonus podcasts to loyalty program members
- Coworking spaces with member portal for docs and events
- Photography academies with special forums for students
Over 300,000+ active installs as it nicely complements popular page builders and LMS plugins.
Let‘s look at some access rule examples:
User Role Access Rules
- Page X for Contributor and above
- Private forum for Author and above
- Category podcasts for Editor only
Individual Page Rules
- Page templates/themes for Web Designers
- Bonus downloads page for Premium Members
- Job board page for Gold Members
Easy-to-use for basic WordPress user roles for segmentation.
Step-by-Step Example
Let‘s look at quick example of blocking a page:
- Create new post called "Bonus Materials"
- Publish page
- Edit it to restrict for certain roles
- Select Author roles only
- Update the post
This will now limit the page to authors only automatically. Nice and simple!
Plugin 3: LearnDash for Course Access
LearnDash is the best WordPress LMS plugin for selling courses. It lets you combine course building tools with flexible access control.
Key membership features are:
✔ Create paid courses or free courses
✔ Enroll students into courses
✔ Drip-release lessons over time
✔ Certificates after course completion
Use Cases and Industries
Typical sites leveraging LearnDash course access control:
- Universities selling online degree courses
- E-learning portals with 1000+ tutorial videos
- Subscription education sites like MasterClass
- Coaches and consultants teaching courses
Some stats around adoption:
- 6+ million course enrollments globally
- 700+ course access and permission controls
- Used by Fortune 500 companies like Google and Office Depot
Let‘s look at some examples around access rules:
Student Course Access
- Math 101 visible to enrolled students only
- Scholarship students get Math 201 for free
- Final exam unlocked after required attendance
Individual Lesson Rules
- New lesson releases each month for recurring members
- Previous semester videos locked after expiration
- Bonus course module for annual members
Very granular control for course content access control.
Step-by-Step Example
Easy course restrictions:
- Make a new course called "Course 101"
- Set access mode to "Buy Now"
- Add price $299 and publish course
- Enrolled users can now view Course 101 materials
This limits full course access only to students who purchased the course.
Conclusion and Summary
I covered techniques, data, and examples using 3 leading plugins to properly restrict WordPress access by user roles, memberships, and courses.
Some key points in summary:
- Registered vs guest access control
- Capability to tie page access rules to subscription payments
- Simple plugins integrated with default WordPress roles
- Purpose built course access restrictions for online academies
Let me know if you have any other specific questions!