If you’re building a WordPress site for clients, or any type of site that’s going to have multiple users (or both!), you need a foolproof way to control the exact permissions that each user has at the site. For example, you probably don’t want to give a regular user access to install plugins, and I doubt you want a non-technical client having access to edit theme files directly.
To control exactly what every user on your site has access to and which actions they can take, WordPress includes a system of user roles and capabilities.
In this post, I’ll first define those terms and go through the default roles and capabilities for every WordPress site. Then, I’ll show you how you can modify those default roles or create your own roles with custom capabilities for more control over your site.
What Are WordPress Roles And Capabilities?
Before I cover what roles are, it’s helpful to define capabilities.
A capability is a specific action that a user can take. These are all examples of individual capabilities:
Publishing a post
Viewing a private post
Editing a post
Activating a plugin
Installing a theme
By default, WordPress includes 62 different capabilities
Source: https://managewp.org/articles/17260/wordpress-roles-and-capabilities-what-they-are-and-how-to-use-them
source https://williechiu40.wordpress.com/2018/03/21/wordpress-roles-and-capabilities-what-they-are-and-how-to-use-them/
No comments:
Post a Comment