How to create and manage membership roles in WordPress


How to create and manage membership roles in WordPress_WordPress has been a popular choice for websites that need a content management system. Like other CMS, WordPress provides comprehensive pre-defined membership roles that meet site administrator and site manager requirements.

Most website owners are unaware that they can provide limited access to the Dashboard according to specific accounts. This action ensures that only a specific group of people has access to specific admin panel options and areas. The role of account loading on custom WordPress also helps to minimize the possibility of an accident that can crash the whole website.

For this article, I will describe two ways of creating a new WordPress account role by taking advantage of the plugin and ensuring that everything on the web is under control.

Understand the role of WordPress members

In WordPress, Membership is a combination of:

A role is a member group name that will display in the WordPress Admin Panel, and likely administrator privileges are enabled or disabled.

By default, WordPress has six main membership roles.

Super Admin: Profile with access to the web, including network administration features.

Administrator: Has sufficient administrative privileges.

Editor / Editor: Can create, edit, post their posts and post others.

Author / Author: Can create, edit, publish only their post.

Contributor / Collaborators: Can create, edit their posts, but cannot.

Subscriber / Subscriber: Can only manage their profile.

You can find your WordPress rights right in the Dashboard.

Log in to your WordPress Admin panel, navigate to Members → All.

You can see the current WordPress roles available on your website:


There are two ways to create, edit or delete WordPress membership roles.

1. Modify the WordPress membership role through the Plugin

Sometimes a plugin can control WordPress membership and provide the simplest solution. There are many plugins to add, modify and delete roles and capabilities of WordPress members. One worth checking out is the improved Capability Manager Enhance from PublishPress, but in this tutorial, I would recommend that you try the User Role Editor plugin.

After installation and activation, from the left pane, navigate to Member → Member Role Editor.


As you can see, there are many options for adding / modifying / deleting WordPress membership capabilities.

First of all, note that you will see all WordPress roles exist on your WordPress web. If you want to update or change anything, select the member role from the list.


In my case, I chose the WordPress Editor role and you can only see the existing capabilities assigned to Editor.


If you are not familiar with WordPress access levels and the capabilities of a role, read this WordPress Codex to understand details about them.

The WordPress User Role Editor plugin allows you to rename the capabilities by ticking the small box below.


And this is how the possibilities will show.


And so, now that you have an idea of ​​how the plugin lists the existing WordPress membership permissions assigned to each WordPress member.

To increase the WordPress member's capabilities, you can go to the corresponding group from the left. For example, besides the current capabilities, I also want to allow the Editor to add and enable plugins.

For this, navigate to Plugins from the left pane and select Install Plugins and Activate Plugin and update members by clicking on the Update / Update button on the right.


Now visit the Granted Only section and you will see the Editor can now Install and Activate Add-ons.


To add (or remove) the capabilities for a specific WordPress member role, navigate to the corresponding group from the left pane and assign (or delete) the respective capabilities.

  • Create a new WordPress membership role

The User Role Editor plugin also allows you to create new WordPress Roles next to Administrators, Authors, Editors, etc. Click the Add Role button from the right menu and a new popup window will appear asking you:

Role name (ID): A unique ID for each member role.

Display role name: The name of the role is displayed.

Create a copy: Selecting an existing role will form the basis of the new role.


In my case, I copied the editor / editor roles and named the new role as Editor Limited Acces. As you can see, the new role has all the same capabilities as the original editor role.


Now, I have added / removed capabilities for this new role.

Like adding roles, you also add / create new capabilities and assign them to any WordPress member role.

Next, I will demonstrate how you create custom WordPress membership roles through code.

See more: How to create a multilingual WordPress website

2. Create, edit or delete WordPress membership roles manually

WordPress lets you remove default member roles and create custom roles by assigning privileges / limited capabilities to specific membership groups (Roles).

CMS provides five functions to manage WordPress roles and capabilities:

add_role (): To add custom roles.

remove_role (): To delete custom roles.

add_cap (): To add custom capabilities to the role.

remove_cap (): To remove the ability to customize from the role.

get_role (): Get information about its role and capabilities.

  • Delete default member role

I will start by removing the existing roles. Remember that WordPress, by default, has the following five roles:

Subscriber / Subscriber

Editor / Editor

Collaborators / Contributor

Author / Author

Manager / Administrator

For this tutorial, I will delete all member roles except Administrator. To do this, navigate to WordPress Admin → Appearance → Editor → Theme functions.


I will use the remove_role () function to remove the role. Copy the following code and paste it at the end of the Theme Functions file.


Click the Update file / Update file button.


To verify that all the WordPress membership roles mentioned are deleted, navigate to Members → All members.

You will find that except for Administrators, all WordPress roles have been deleted.


  • Create a new member role

For this tutorial, I will create three new member roles with WordPress membership rights below.

Administrator: with complete administrative access.

Moderator / Moderator: can create, edit, post and other posts by WordPress members.

Newbie: can only edit their profile and create new posts.

To add these custom WordPress member roles, I will use the original add_role () function with the following syntax:

add_role($ role, $ display_name, $ capabilities);


  • Role: A unique name of the role.

  • display_name: The name will be displayed in the WordPress admin panel.

  • capabilities: Privileges of a role

Here is a list of all possibilities.

  • Manager / Administrator

Because I did not delete the default administrator role, all the capabilities and privileges of this role remain intact.

  • Moderator / Moderator

This role has the right to create, edit and post their own and other WordPress members.

Copy the following code and paste it at the end of the Theme Functions file.

  1. add_role(‘Moderator’, __(

  2. ‘Moderator’),

  3. array(

  4. ‘Read’ => true, // Allows a user to read

  5. ‘Create_posts’ => true, // Allows user to create new posts

  6. ‘Edit_posts’ => true, // Allows user to edit their own posts

  7. ‘Edit_others_posts’ => true, // Allows user to edit others posts too

  8. ‘Publish_posts’ => true, // Allows the user to publish posts

  9. ‘Manage_categories’ => true, // Allows user to manage post categories

  10. )

Click Update file / Update file.

  • Assign Moderator / Moderator roles to members

Next, I will assign this role to the member. To do so, go to WordPress Dashboard → Members → All members and follow the instructions below.


I have assigned the Moderator / Moderator role to members. As you can see (from the image below) when he logs in and accesses the Dashboard, this member will have restricted access to WordPress according to the capabilities of the new role.


This role can only edit their profile and create new posts.

To add this role, copy the following code and paste it at the end of the Theme Functions file.

  1. add_role('newbie', __(

  2. 'Newbie'),

  1. array(

  1. ‘Read’ => true, // Allows a user to read

  1. ‘Create_posts’ => true, // Allows user to create new posts

  1. ‘Edit_posts’ => true, // Allows user to edit their own posts

  2. )

After pasting the code, click the Update file / Update file button.

  • Assign Newbie's role to a member

To assign a new role to a member, navigate to WordPress Dashboard → Members → All members and follow the instructions below.


I have assigned a Newbie role to the member. You can see (from the image below) that when this member logs in and enters the Dashboard, he will have limited privileges.

Now, I will assign the Newbie role to every registered visitor on my site.



With this article, I explained to you how to create WordPress membership roles with limited WordPress access and the different types and permissions that people take advantage of. As you can see, there are many customization options and there are a large number of actions that you are entitled to or may not provide for each of your WordPress members.

So which WordPress membership privileges do you have on the website? Share your experiences with us by leaving a comment in the section below.

About My name is Nguyen Manh Cuong. I was born in a poor village in Ba Vi district, HA NOI province - windy and sunny land. Currently. Mr Cuong.
Newer Posts Newer Posts Older Posts Older Posts


Post a Comment