Understanding restriction levels
We have two important aspects in content restrictions. First, we need to identify different content types that need to be restricted and then identify which user types are restricted from accessing this content. So, we group the users and define specific restriction levels for these user groups. Let's identify the most commonly used restriction levels in WordPress web applications:
- User roles-based restrictions
- User groups-based restrictions
- Membership plans-based restrictions
- Unique password-based restrictions
Let's take a look at how these restriction levels are implemented.
User roles-based restrictions
User roles is a default WordPress feature and it's the only technique that we can use as a restriction level without needing custom coding or third-party plugins. As we discussed in Chapter 2, Implementing Membership Roles, Permissions, and Features, WordPress gives you six built-in user roles. These user roles also have built-in restrictions to the backend of...