Is it possible to hide unnecessary elements in WordPress to block them from users ?

unnecessary elements

There are many things in the admin area that users, authors, or clients do not need to see or use. Cleaning up the admin area helps maintain their focus on the necessary options without the distraction of clutter.

In this article, we will explain how to hide unnecessary elements in WordPress administration.

Why hide unnecessary elements in WordPress administration?

In the admin area, there are numerous menus, sub-menus, options, and plugin settings that can be modified at any time. Some of these menu components include dashboard widgets, post editing area, plugins, appearance, tools, and more.

However, most of these menus and settings are not used on a daily basis and can clutter the admin area. If you manage a multi-author site or have clients visiting the admin area, it is good practice to clean up the dashboard.

You can also keep only the useful menus and options for authors and clients, hiding the rest of the sub-menus.

You may also want to deactivate menu items based on user roles by creating a custom admin interface for users with different roles and capabilities on your site.

Note:

This relates to the admin menu that registered users see on your site after logging in. If you want to customize the navigation menus that all visitors to your website see, you can do so through WordPress navigation menus.

Hiding menu items from the administration :

The easiest way to hide menus and items from the admin dashboard is by using the Admin Menu Editor plugin.

It is a free plugin that allows you to change menu titles, URLs, icons, and more. You can also hide menu items from the admin area, set user role permissions, and drag the menu items to organize your WordPress admin.

First, you’ll need to install and activate the “Admin Menu Editor” plugin. Once activated, you can navigate to Settings » Menu Editor from your admin dashboard. Then, you’ll see all the menu components and sub-menus under the “Menu Editor” tab.

1

You can simply drag and drop menu items to rearrange them. There are also options to remove or add a new menu item. Then, go ahead and click on the downward arrow for any menu item to see more options. This way, you can rename the menu title, change the target page, and more options.

2

To hide a menu item for a specific user, simply click on the dropdown menu “Capabilities.” Then, you can choose the user role that can view the selected options. For example, let’s say you want to hide the Media menu and its sub-menus for all user roles except for administrators. To do this, click on the “Capabilities” dropdown and select “Administrator” under Roles.

unnecessary elements user

Once you’re done, proceed to save the changes. Now, the Media menu item will be visible to the Administrator role only and hidden for other user roles.

If someone tries to access the hidden menu item by typing the URL address,

they will see an error message stating that they don’t have sufficient permissions to access that admin page.

عناصر

You can now repeat these steps to hide menu items and other plugin components from the WordPress admin menu for different users.

We hope this article helps you hide unnecessary elements from the WordPress administration.

You may also want to check out our previous articles on how to get a free SSL certificate in WordPress and the best WooCommerce plugins.

Previous post
ThemeForest Review – The Reality of This Market 2022
Next post
Multilingual WordPress in simple steps

Leave a Reply