
This makes it so that only trusted users can have dashboard access.

Plus, let’s face it, they’re easy to use.įor example, you can simply restrict access to user roles or users that have specific permissions and redirect others to a specific page. Plugins can have some advantages over the other options of limiting users. If code isn’t your thing, there’s always a way to… Prevent Users From Access with a Plugin It won’t apply to any user that’s not non-logged, because they wouldn’t have any dashboard access, to begin with. This code only functions when a user logs into the WordPress dashboard. Only admins can have access and all other users will be redirected to the home page. This will block non-administrators from accessing your WordPress site’s backend. It’s easy to paste the following snippet of code into your child themes functions.php file.

Using Code to Limit AccessĪnother way of limiting access is with code. You can adjust and change roles as needed. It only allows the user to manage their profile.Īs you can see, each role has different capabilities. Subscriber: As I mentioned, it’s very limited.Contributor: Will allow a user to write and manage their posts, but not publish them.Author: Users can publish and manage their posts.Editor: A user who can publish and manage posts, including the posts of other users.Super Admin is only available with multisite. Admin/Super Admin: Allows access to the site network administration features and every other feature in a single site.So what’s the difference of roles? The WordPress role options are: The dropdown to change roles in WordPress’ admin. So, any existing user roles can be modified under Users and then All Users.įrom there, click the box of the user whose role you’d like to change or you can select numerous users in bulk. You can change the roles of any user that has access to your site at any time. Where you’ll set up new user default settings. From there, just set any New User Default Role as a Subscriber. To do this, simply go to Settings and then General. This can all be done in the admin area of WordPress. The Subscriber role is very limited and only allows the user to read content on the frontend of the site and manage their profiles. WordPress roles come with different capabilities and actions that users are allowed to conduct, such as writing and editing posts, creating pages, moderating comments, and more.Īn easy way to limit access is to set up a new user as a Subscriber. If you’re the site owner, you can assign user roles that control how much access to the dashboard they have. Limiting Dashboard Access With Different User Roles and Permissions Let’s start by limiting dashboard access in the WordPress dashboard. Whatever the case may be, it’s nice to have control over who has access to what, and set your WordPress site up accordingly. Or, maybe you don’t want subscribers to access your dashboard at all. That way they can’t change the themes or plugins while logged in. There are times you don’t want every user to access it all.įor example, if you’re running a multi-author blog and just want editors to have access to write and publish - and nothing else. However, it doesn’t mean they need to have TOTAL access to everything.

You trust everyone that has access to your WordPress account, right? Well, sure. WordPress has its own access capabilities - without having an actual access pass. The good news is, after reading this, you’ll know how to hand out digital permission accordingly to your users and keep certain areas inaccessible.

If you considered your WordPress site like an online home, you wouldn’t always want everyone going through all of your drawers. In this article, we explore some of the easiest ways to limit access for WP users using the admin, code, and plugins. How many people would you hand your house keys to and let get into anything that they want? The same can be said about your WordPress account and its users.
