Thursday 14 December 2017

How To Create Custom User Roles On WordPress (And Edit Capabilities)


User roles are what allow you to control which actions other users on your site can perform and what content those users have access to. By default, WordPress single site installs come with five user roles, but many plugins add additional user roles, and you’re also free to create your own user roles. If you’re the only person with access to your site, you probably don’t need to concern yourself with user roles. But if you’re planning to allow other users to access your site, it can be helpful to learn how to create custom user roles so that you have pinpoint control over each users’ permissions.
In this post, I’m going to show you two different ways to create custom user roles on WordPress:
Using a free plugin called User Role Editor
With your own code snippet
We’ll jump right in after a short introduction to the relevant terminology…
The Difference Between WordPress User Roles And Capabilities
In this post, you’re going to encounter two important terms:
Role – this is what you apply to an actual user account. For example, the first account at your WordPress site always has the Admin role.
Capability – this is an individual
Source: https://managewp.org/articles/16817/how-to-create-custom-user-roles-on-wordpress-and-edit-capabilities




source https://williechiu40.wordpress.com/2017/12/14/how-to-create-custom-user-roles-on-wordpress-and-edit-capabilities/

No comments:

Post a Comment