Do you need to prohibit sure pages in your web site by person function?
Many WordPress companies want to manage which customers can entry sure pages on their web sites.
On this article, we’ll present you the way to simply prohibit entry to sure WordPress pages by person function.
![Restrict Content by User Role How to restrict WordPress pages by user role](https://www.wpbeginner.com/wp-content/uploads/2017/10/restrict-wordpress-pages-by-user-role.png)
Why Prohibit WordPress Pages by Person Position?
While you begin a WordPress web site, you may need to prohibit sure areas and pages based mostly on person function. As an example, if in case you have a multi-author web site, then you may restrict entry to particular pages for writers and editors.
Limiting pages based mostly on person roles is a standard use case for membership websites. You’ll be able to restrict pages in your web site based mostly on the person’s membership stage. For instance, solely subscribers can view the video web page or the web course web page.
By default, WordPress comes with a restricted set of instruments to limit content material in your web site. You’ll be able to create personal and password-protected posts, however these options don’t let you restrict entry by person function.
Fortunately, there are a number of WordPress plugins that let you do exactly that. You’ll be able to select certainly one of them to limit pages to sure customers, person teams, or person roles.
Utilizing these plugins, you may create a membership web site, pay-per-view web sites, and even household blogs. You can even monetize your content material by including paid subscriptions.
That being mentioned, let’s check out the way to correctly prohibit WordPress pages by person function. We can be displaying you completely different plugins, you may select the one which most closely fits your wants.
1. Prohibit Pages by Membership utilizing MemberPress
MemberPress is without doubt one of the finest WordPress membership plugins available in the market. It means that you can simply create membership web sites with paid subscriptions. You’ll be able to arrange content material restrictions and solely enable particular person roles to entry it.
MemberPress is a premium plugin, and also you’ll want to enroll in an account. Merely go to the web site and click on the ‘Get MemberPress for WordPress’ button.
![MemberPress MemberPress](https://www.wpbeginner.com/wp-content/uploads/2019/10/memberpress.png)
![MemberPress MemberPress](https://www.wpbeginner.com/wp-content/uploads/2019/10/memberpress.png)
Subsequent, you have to to put in and activate the MemberPress plugin. For extra particulars, see our step-by-step information on the way to set up a WordPress plugin.
Upon activation, head over to the MemberPress » Settings web page to enter your license key. Yow will discover the important thing in your account space on the MemberPress web site.
![MemberPress license key Adding a license key to your MemberPress plugin](https://www.wpbeginner.com/wp-content/uploads/2017/09/license-key-memberpress.png)
![MemberPress license key Adding a license key to your MemberPress plugin](https://www.wpbeginner.com/wp-content/uploads/2017/09/license-key-memberpress.png)
Subsequent, it’s good to head over to the ‘Funds’ tab to arrange funds.
Merely click on the ‘+ Add Cost Technique’ choice to get began.
![Set up payment gateway for MemberPress The MemberPress payment gateway settings](https://www.wpbeginner.com/wp-content/uploads/2020/08/add-payment-method.png)
![Set up payment gateway for MemberPress The MemberPress payment gateway settings](https://www.wpbeginner.com/wp-content/uploads/2020/08/add-payment-method.png)
MemberPress helps PayPal (Normal, Specific, and Professional), Stripe, Authorize.internet, and extra out of the field. You’ll be able to choose the cost strategies you need to use and supply the required credentials.
Subsequent, it’s good to go to the MemberPress » Memberships web page from the WordPress dashboard and click on on the ‘Add New’ button to create a membership plan.
![Creating a membership Adding a new membership subscription to WordPress](https://www.wpbeginner.com/wp-content/uploads/2023/05/memberpress-members-new.png)
![Creating a membership Adding a new membership subscription to WordPress](https://www.wpbeginner.com/wp-content/uploads/2023/05/memberpress-members-new.png)
You’ll begin by offering a title for this membership plan and setting pricing, billing kind, and expiration settings.
After that, scroll right down to the ‘Membership Choices’ meta field beneath the publish editor. That is the place you may arrange completely different choices for this specific membership plan.
Go forward and click on on the ‘Superior’ tab underneath membership choices and click on the ‘Person Roles for this Membership’ checkbox.
![Select user role for membership plan Check the user roles option](https://www.wpbeginner.com/wp-content/uploads/2017/10/check-the-user-roles-option.png)
![Select user role for membership plan Check the user roles option](https://www.wpbeginner.com/wp-content/uploads/2017/10/check-the-user-roles-option.png)
After that, you may merely select a person function from the given listing.
Watch out when selecting a person function as every person function in WordPress comes with its personal permissions. When you want, you can even create a customized person function for the membership plans in your web site.
Now you can publish your membership plan.
If you wish to add extra membership plans, then you may repeat the method so as to add them.
After getting created a membership plan, it’s time to arrange guidelines to limit entry to the content material.
Head over to the MemberPress » Guidelines web page from the WordPress dashboard and click on on the ‘Add New’ button on the high.
![Adding a new rule to your WordPress membership site Adding a new rule to your WordPress membership site](https://www.wpbeginner.com/wp-content/uploads/2023/02/memberpress-add-rules.png)
![Adding a new rule to your WordPress membership site Adding a new rule to your WordPress membership site](https://www.wpbeginner.com/wp-content/uploads/2023/02/memberpress-add-rules.png)
This may convey you to the foundations edit web page the place you may choose completely different circumstances and select which pages to limit.
You’ll be able to click on the dropdown menu underneath ‘Shield Content material’ and select a rule.
![Choose content to restrict Choose content to restrict](https://www.wpbeginner.com/wp-content/uploads/2017/10/choose-content-to-restrict.png)
![Choose content to restrict Choose content to restrict](https://www.wpbeginner.com/wp-content/uploads/2017/10/choose-content-to-restrict.png)
For instance, you may choose all content material that matches a selected tag or class to be accessible solely to members with a membership plan you created earlier. Or you may choose a single web page to limit entry.
When you’re selecting a class or tag to dam entry, you then’ll want to make sure that the content material is added to that individual class or tag.
You’ll be able to see our information on the way to add classes and tags in WordPress.
That’s all, you’ve got efficiently restricted pages in WordPress by person function and membership utilizing MemberPress.
2. Restrict Web page Entry by Person Position utilizing Prohibit Content material Professional
Prohibit Content material Professional is a good possibility to manage who has entry to your web site content material. It additionally means that you can add paid subscriptions and generate profits on-line out of your membership web site.
To start out, you’ll want to go to the Restricted Content material Professional web site and click on the ‘Get Began’ button.
![Restricted content pro Restricted Content Pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/restricted-content-pro.png)
![Restricted content pro Restricted Content Pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/restricted-content-pro.png)
Subsequent, you’ll want to enroll in an account.
To arrange web page restrictions based mostly on person roles, you should utilize the free plan. Merely click on the ‘Get Began’ button underneath the Free plan.
![Create a free restricted content pro account Create a free restricted content pro account](https://www.wpbeginner.com/wp-content/uploads/2017/10/create-a-free-restricted-content-pro-account.png)
![Create a free restricted content pro account Create a free restricted content pro account](https://www.wpbeginner.com/wp-content/uploads/2017/10/create-a-free-restricted-content-pro-account.png)
After that, a popup window will open.
You’ll be able to enter an e-mail handle and click on the ‘Get Your Free Plugin’ button.
![Sign up for a free restricted content pro account Sign up for a free restricted content pro account](https://www.wpbeginner.com/wp-content/uploads/2017/10/sign-up-for-a-free-restricted-content-pro-account.png)
![Sign up for a free restricted content pro account Sign up for a free restricted content pro account](https://www.wpbeginner.com/wp-content/uploads/2017/10/sign-up-for-a-free-restricted-content-pro-account.png)
Subsequent, you’ll obtain an e-mail from Prohibit Content material Professional with the obtain hyperlink for the free plugin.
Go forward and obtain the plugin onto your laptop.
From right here, you have to to put in and activate the Prohibit Content material Professional free plugin. For extra particulars, see our step-by-step information on the way to set up a WordPress plugin.
Upon activation, you may go to the Prohibit » Settings web page out of your WordPress dashboard and go to the ‘Normal’ tab.
![Enter your license key Edit general settings for restricted content pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/edit-general-settings-for-restricted-content-pro.png)
![Enter your license key Edit general settings for restricted content pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/edit-general-settings-for-restricted-content-pro.png)
Right here, you may edit completely different pages that the plugin will robotically arrange to your web site.
Subsequent, you’ll have to scroll right down to the ‘Restricted Content material Message’ part and add textual content that customers will see in the event that they’re unauthorized to view a web page.
![Enter restricted error message Enter restricted error message](https://www.wpbeginner.com/wp-content/uploads/2017/10/enter-restricted-error-message.png)
![Enter restricted error message Enter restricted error message](https://www.wpbeginner.com/wp-content/uploads/2017/10/enter-restricted-error-message.png)
After that, it’s good to change to the ‘Funds’ tab to pick a cost gateway.
Prohibit Content material Professional means that you can settle for funds via PayPal, Stripe, Braintree, and Authorize.internet.
![Payments Set up a payment service in restricted content pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/set-up-a-payment-service-in-restricted-content-pro.png)
![Payments Set up a payment service in restricted content pro](https://www.wpbeginner.com/wp-content/uploads/2017/10/set-up-a-payment-service-in-restricted-content-pro.png)
After choosing a cost methodology, it is possible for you to so as to add credentials for every Cost methodology.
Don’t neglect to avoid wasting your settings while you’re accomplished.
Now it’s good to edit the pages or posts you need to be restricted by person roles.
When you’re within the WordPress content material editor, merely scroll right down to the ‘Prohibit this content material’ meta field.
![Restrict content by user role Select user role to restrict pages](https://www.wpbeginner.com/wp-content/uploads/2017/10/select-user-role-to-restrict-pages.png)
![Restrict content by user role Select user role to restrict pages](https://www.wpbeginner.com/wp-content/uploads/2017/10/select-user-role-to-restrict-pages.png)
From right here, click on the dropdown menu underneath the Member entry part and choose the ‘Members with a sure function’ possibility.
Subsequent, you may select the person function you need to enable to view the web page.
![Choose user roles to limit page access Choose user roles to limit page access](https://www.wpbeginner.com/wp-content/uploads/2017/10/choose-user-roles.png)
![Choose user roles to limit page access Choose user roles to limit page access](https://www.wpbeginner.com/wp-content/uploads/2017/10/choose-user-roles.png)
While you’re accomplished, merely replace or publish your content material.
Prohibit Content material Professional additionally means that you can create subscription ranges. For extra detailed directions, see our information on the way to prohibit content material to registered customers in WordPress.
3. Block Entry to Course Pages utilizing LearnDash
LearnDash is the perfect WordPress LMS plugin. It means that you can create and promote programs on-line. You need to use its drag-and-drop course builder to create classes, quizzes, and extra.
It comes with built-in subscriptions permitting customers to enroll right into a course earlier than they’ll see its contents. This lets you prohibit entry to course pages and monetize your web site.
First, you’ll want to go to the LearnDash web site and join an account.
![LearnDash LearnDash](https://www.wpbeginner.com/wp-content/uploads/2020/01/learndashwebsite-1.jpg)
![LearnDash LearnDash](https://www.wpbeginner.com/wp-content/uploads/2020/01/learndashwebsite-1.jpg)
Subsequent, it’s good to set up and activate the LearnDash plugin. For extra particulars, see our step-by-step information on the way to set up a WordPress plugin.
Upon activation, it’s good to go to the LearnDash LMS » Settings web page from the WordPress dashboard.
Subsequent, it’s good to change to the ‘Funds’ tab and choose you’re most popular cost gateway.
![LearnDash payment Add payment gateway to LearnDash](https://www.wpbeginner.com/wp-content/uploads/2017/10/add-payment-gateway-to-learndash.png)
![LearnDash payment Add payment gateway to LearnDash](https://www.wpbeginner.com/wp-content/uploads/2017/10/add-payment-gateway-to-learndash.png)
Now you may go to the LearnDash LMS » Programs web page out of your WordPress admin panel.
From right here, click on on the ‘Add New’ button so as to add your first course.
![Add new course Add new courses to LearnDash](https://www.wpbeginner.com/wp-content/uploads/2017/10/add-new-courses-to-LearnDash.png)
![Add new course Add new courses to LearnDash](https://www.wpbeginner.com/wp-content/uploads/2017/10/add-new-courses-to-LearnDash.png)
Enter a title and outline to your course.
The outline half can be seen to all customers to clarify what this course is about.
![Add course title and description Enter title and description for your course](https://www.wpbeginner.com/wp-content/uploads/2017/10/enter-title-and-description-for-your-course.png)
![Add course title and description Enter title and description for your course](https://www.wpbeginner.com/wp-content/uploads/2017/10/enter-title-and-description-for-your-course.png)
After that, it’s good to change to the ‘Settings ‘tab within the course builder.
From right here, merely scroll to the ‘Entry Mode’ part. The plugin means that you can create open (public), free, purchase now, recurring, and closed course sorts.
If you choose the ‘Purchase now’ possibility, you then’ll have to enter a course worth. Solely customers that subscribe will be capable of entry your course pages.
![Course options Change access mode settings](https://www.wpbeginner.com/wp-content/uploads/2017/10/change-access-mode-settings.png)
![Course options Change access mode settings](https://www.wpbeginner.com/wp-content/uploads/2017/10/change-access-mode-settings.png)
Without cost programs, your customers will nonetheless have to enroll within the course by creating an account.
Now you can save or publish your course and preview it in your web site.
Now that you’ve got created a course, it’s nonetheless empty. To fill it up you have to so as to add the course contents like classes, quizzes, and assignments.
LearnDash is a strong instrument to promote on-line programs whereas proscribing entry to content material. It really works rather well with MemberPress to create subscription plans that robotically give customers entry to completely different programs.
That’s all for now. We hope this text helped you discover ways to simply prohibit WordPress pages by person function. You may additionally need to see our final step-by-step WordPress safety information for freshmen and should have WordPress plugins for enterprise web sites.
When you preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can even discover us on Twitter and Facebook.
Leave a comment