How to Hide Dashboard Widgets in WordPress

Looking for a way to hide dashboard widgets for specific user roles in WordPress? Although dashboard widgets can be extremely useful for administrators and other user roles to monitor website activities, not all users need to see them.

In these cases, Belize B2B List you can hide them from the user to clean up the WordPress dashboard.

Keep in mind that visitors will never be able to see your website’s dashboard. So if you’re looking to hide it from them, don’t worry. WordPress has already taken care of that. Also keep in mind that any code you use will require modifications to hide custom dashboard widgets. Today I will show you how to hide dashboard widgets in WordPress for any user role using two methods.

Why Hide Dashboard Widgets in WordPress

When users log into their WordPress account, the dashboard is the first thing they see. You can easily clutter the screen when you add extra widgets besides the default ones. Not only can you add custom dashboard widgets, plugins sometimes automatically add their own.

As a result, the dashboard can get cluttered very quickly.

To prevent this from happening, hiding the dashboard widgets from users can easily solve the problem. What you want to hide is different for every website. Depending on your dashboard widgets, you may want to hide some of them from certain users.

Belize B2B List

Most web developers focus on designing the front end of their website. But remember that cleaning up the background can save you time and make everyone’s job easier.

How to Hide Dashboard Widgets in WordPress

There are two ways to hide dashboard widgets in WordPress, plugins and code.

For the plugin approach, I will be using the Ultimate Dashboard plugin. This makes it easy to customize what appears on your dashboard with a drag-and-drop interface. If you are interested in dashboard widgets for a specific role, these are available in the pro edition.

The coding method does not require any advanced coding techniques. Instead, you’ll just have to copy and paste some code into your functions.php file. The WordPress.org website provides the code needed to hide all dashboard widgets by default. The plugin uses the term “remove” instead of “hide”.

But rest assured, you’re not actually deleting them. They just hide.

Whenever you change code, no matter how simple, it’s a good idea to create a backup of your website. This will ensure that if something goes wrong, you can use it to revert your website to before the changes.

Leave a comment

Your email address will not be published.