Control WordPress Access Through User Roles

Every WordPress website is packaged with the ability to control site access through the use of user roles. Most WordPress site owners fail to take full advantage of the power of user roles. Below are a few tips and suggestions for getting the most out of this surprisingly powerful feature.

WordPress User Role Basics

In essence a WordPress user role is a collection of allowed actions (officially referred to as capabilities) that the user role can perform in the WordPress environment. Example capabilities include installing plugins, creating menu items, publishing posts and pages, adding new users, and editing posts created by other users. WordPress comes prepackaged with 5 default user roles. The full WordPress documentation goes into great detail, but for now here is a summary:

  • Administrator: Users with this role can do everything that can be done on the site, such as installing plugins, updating WordPress to the latest version, creating new users, etc. It is often tempting to give new colleagues the Administrator user role out of convenience, but that presents the possibility of doing great damage to the site if they don’t fully understand what they are doing. It is sound security to only grant the bare minimum of privileges required for their position. Another thing to consider is that Administrators have complete access to the WordPress admin menu, which can be quite daunting on sites with a large number of plugins. More narrowly-defined user roles will only see the WordPress admin menu items they specifically have access to.
  • Editor: The second most powerful user role, Editors can edit and publish posts made by other users. This is a useful role if a site routinely posts articles by numerous authors and is trying to maintain a unified “voice”.
  • Author: Authors have complete control over posts that they themselves create, but have no access whatsoever to posts created by other users.
  • Contributor: A Contributor can edit posts made by others, but unlike editors they cannot publish any posts.
  • Subscriber: As the least powerful default role, Subscribers don’t have access to anything in the WordPress admin other than their own profile. This is the default role that most custom roles are built from.

Creating and Managing Custom WordPress User Roles

Unless your WordPress site is a simple blog, the aforementioned user roles are unlikely to be satisfactory. Some WordPress plugins automatically create new user roles (for example WooCommerce comes packaged with Shop Manager and Customer user roles) but most do not. To take a common example, a WordPress site may have a plugin to create events to populate an events calendar. A staff member will create, update, and publish those events but does not need to access other areas of the site. If the events plugin did not automatically create new user roles and the events have their own post type, then the user who will manage the events will have to be given the Administrator role, which is highly undesirable. What is to be done?

Custom user roles can be created to handle this very issue. One such way to do this is through a plugin such as User Role Editor. This plugin can create custom user roles with a specific set of capabilities. It is not the easiest plugin to use and can be a bit confusing. However, it can solve the specific event manager problem described above perfectly. It can also be used to modify existing user roles. For example, the Editor role can be expanded to edit user profiles. The flexibility of the user roles can be enhanced significantly.

WordPress User Roles to Control Page Access

We have discussed WordPress admin features exclusively thus far. Front end content can also be controlled through clever use if user roles. For example, you may want to have a page set up to be only accessible to users who have joined a site through a specific form in order to increase site engagement. This can be accomplished through a couple of other useful plugins.

Access to pages can be controlled via plugins such as Restrict User Access. This plugin allows pages and posts to be accessible to only users with specific user roles. It is rather flexible and easy to use. Plugins such as Paid Memberships Pro can do something similar but will add a great deal of complexity.

Administrators can easily create users and assign them to specific roles, but what if you just want to have users create themselves with a specific role? This can be accomplished through the WP Everest User Registration Form plugin. It allows for the creation of multiple registration forms, each with their own user role and login redirect page. This is relatively quick and simple to set up. There are similar plugins available to accomplish the same goals.

User Roles are often overlooked by WordPress site owners. Without a great deal of effort a WordPress site can be enhanced significantly by taking full advantage of this great feature.

Leave a Comment


Work With Us

We've been building websites for over twenty years, and have learned a thing or two about how to make web projects go smoothly.

What Our Clients Say

Watermelon Web Works, LLC place picture
4.7
Based on 19 reviews
powered by Google
OMS Anita profile picture
OMS Anita
22:20 29 Nov 24
Watermelon Web Works has been incredible to work with. They are patient, understanding, and quick to answer any questions (or emergencies) you might have. After switching over to them to help re-vamp our online retail store, we hired them to build our wholesale website as well. I can't recommend them enough - Thank you team!
Garrett Lister profile picture
Garrett Lister
19:55 10 Jul 24
Jared and the watermelon team were great - they quickly interpreted our website needs and designed a wonderful site. The project management site worked great to keep track of project.
N B profile picture
N B
21:23 14 Nov 23
My previous web developer who I was very happy with retired and I was pretty sad about it because it seems now days it is hard to hire a web developer close by with a good set of skills who is interested in helping small business at reasonable prices. Then I found Watermelon and I have been very happy. They are responsive, are able to solve problems, and work at reasonable prices.
Dark Star Magick profile picture
Dark Star Magick
18:05 03 May 23
We hired Watermelon to help us with our website. They were very thorough and took the time to explain in layman's terms what they were doing and how we could improve SEO and site functionality. We will definitely be back for future website needs!
Astoria Column profile picture
Astoria Column
18:42 24 Apr 23
Great work and amazing service! We're a non-profit, and our priorities are always focused on maintaining the Astoria Column. We had a website built by someone else a few years ago, but without regular updating and maintenance, sections of our site were no longer functional. Joanna and the rest of the team came in and had everything working within a week and it's been smooth sailing since then!
Ben Harris profile picture
Ben Harris
19:25 26 Aug 19
Watermelon has been a fantastic web development partner. Through every phase of our project they have always been 100% responsive to our requests and have always provided highly knowledgeable, creative, prompt, and personable team members to work with. As a financial institution we’re always concerned about the security and maintenance or our website and Watermelon has always provided the appropriate resources in order to meet and/or exceed our compliance and security requirements. We would surely refer them to any business associates looking for a qualified WordPress web designer in the future. – Denali Federal Credit Union
Mohr IP Law Attorneys profile picture
Mohr IP Law Attorneys
00:33 11 Apr 19
Watermelon Web Works did a great job creating a custom shopping cart page for our firm. Gavynn in particular was especially helpful and responsive. We appreciated the upfront costs and the technical competency of Watermelon Web Works and would not hesitate to work with the people there again.
Kim Markle profile picture
Kim Markle
23:36 08 Feb 19
Our company has been working with the Watermelon team for more than 10 years to help build and grow our website and customer portal. They are not only extremely talented and responsive, but are continuously looking for ways for us to enhance our current website. They are consistent, provide excellent customer service and really know what they are doing. Highly recommend!
Rick Brodner profile picture
Rick Brodner
23:23 12 May 17
I cannot say enough good things about Watermelon. They are terrific communicators, highly competent coders, and really, really nice people. They were instrumental in helping us to assemble a very usable, easily maintainable website for our organization. They' have demonstrated great flexibility in accommodating our evolving needs. They have been highly responsive to any technical issues, typically resolving them in less than 4 hours. Watermelon Web Works will make your organization better, and your CFO/Treasurer will be happy when they see the bill - what more can you ask for?
CLOSE