IT Blog

  • Blog
  • Technology
    • Technology
    • Architecture
    • CMS
    • CRM
    • Web
    • DotNET
    • Python
    • Database
    • BI
    • Program Language
  • Users
    • Login
    • Register
    • Forgot Password?
  • ENEN
    • 中文中文
    • ENEN
Experience IT
In a World of Technology, People Make the Difference.
  1. Home
  2. Technology
  3. CMS
  4. Wordpress
  5. Restrict WordPress user access some contents

Restrict WordPress user access some contents

2020-12-03 517 Views 0 Like 0 Comments

Table of Contents

  • Scenario
  • Solution
  • Steps
    • 1. Members plugin
    • 2. Setup roles
    • 3. Add user to a role
    • 4. Restrict page access by role
  • Done.

Scenario

Certain contents are allowed by specific group of users to access.

Membership roles concept

With Members plugin, user roles can be managed in dashboard. Role permissions are called capability. The capabilities are defined based on themes and plugins. The following figure shows the basic role capabilities.

Restrict WordPress user access some contents

Solution

Add a user role that allows users to access those restricted contents.

Steps

1. Members plugin

Install plugin called "Members – Membership & User Role Editor Plugin".

Restrict WordPress user access some contents

2. Setup roles

Go to Members on the left menu of Dashboard. Here you could add a new role or edit an existing role, and then assign permissions, which called capability within the plugin, to the role.

Restrict WordPress user access some contents

Restrict WordPress user access some contents

3. Add user to a role

Go to Users menu, click on the user that you want to edit. Scrolldown to the bottom, the last section is User Roles. Select the role to assign.

Restrict WordPress user access some contents

4. Restrict page access by role

On the page/post editor, scrolldown to the last section "Content Permission", assign page with the role that is allowed to access the page/post.

Restrict WordPress user access some contents

Done.

Now you have restrict the page to be accessed only the users with the role.

Loading

error
fb-share-icon
Tweet
fb-share-icon
IT Team
Author: IT Team

Tags: None
Last updated:2020-12-03

IT Team

This person is lazy and left nothing

Like
< Previous
Next >

Comments

Cancel reply
Newest Hotspots Random
Newest Hotspots Random
Rich editor not working Making web page scroll down automatically Getting data from Dapper result All Unicode Chars How to keep and display contact form 7 data Common Regular Expressions
Add activity log for WordPress Generating Test Data with SQL Scripts Apostrophe 2 title font is too big Embed google map in a page Passing parameters to event handler, setTimeout Generate city list for UPDATE statement in MySQL
Categories
  • Architecture
  • BI
  • C#
  • CSS
  • Database
  • DotNET
  • Hosting
  • HTML
  • JavaScript
  • PHP
  • Program Language
  • Python
  • Security
  • SEO
  • Technology
  • Web
  • Wordpress

COPYRIGHT © 2021 Hostlike IT Blog. All rights reserved.

This site is supported by Hostlike.com