GDPR turns 1 year and we made a birthday cake for it

GDPR has transformed the way personal data is handled. Adapting to it has been costly, but in a little-known niche of the knowledge economy, entrepreneurs are celebrating. Expert networks have become…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




How to Remove Unwanted Meta Boxes in WordPress

You can use code or plugin as follows.

For example, in the post editor section, there is a default meta box named Custom Fields.

There is a default meta box named Custom Fields

I will add the below code in the function.php file to remove this meta box:

Then, it is no longer there:

Insert code in the function.php file to remove this meta box.

Another example, there are many different meta boxes to display general website information or shortcuts in the Admin Dashboard:

There are many different meta boxes to display general website information or shortcuts in the Admin Dashboard

I will try removing them with the below code:

Then, the Dashboard becomes tidier.

Result of removing meta boxes from the Dashboard.

There are many plugins for removing meta boxes. I’ve tried some of them and find Adminimize to be a good choice.

[wp-pic type=”plugin” slug=”adminimize” layout=”large” ]

After installing the plugin, go to Settings > Adminimize. In this section, you will see that it provides many features, not only removing meta boxes.

After installing the plugin, go to Settings > Adminimize.

Go to Write options — Post to deactivate the meta boxes from the post editor in Post. If you want to remove the meta box in other post types, choose Write options — [post type].

This plugin allows you only to deactivate meta boxes, not completely delete them as using code

As you can see, this plugin allows you only to deactivate meta boxes, not completely delete them as using code. But the special feature of this plugin is that you can deactivate each type of meta boxes for different user rolls. Thus, you can restrict users to view meta boxes to prevent them from changing information.

If you want to remove meta boxes completely so that no one can find them, using code is the better choice. If you want to authorize each user role to view just some kinds of them, using a plugin is perfect. Both of them are simple and quick.

One more thing, using plugin Adminimize also helps you customize the appearance of others in the admin bar, backend options, plugin settings,… You should dig in it to take more advantages from it.

If you have other ideas, please share with us in the below comment box.

— — —

Add a comment

Related posts:

Why Your Published Clinical Trial Research Matters

What happens after a clinical trial wraps up? Trials in the United States are, by law, required to submit their FDA-approved medical research results to the database ClinicalTrials.gov. The database…

Fame

In these past few years of social media’s exponential growth, I have observed that somehow, many (if not the majority of) people seems perceiving fame with success, in both material and personal…

5 Foods to Avoid With Low Back Pain

Want a natural way to manage your low back pain? Your diet could help! Certain foods can make your back pain worse and some can help. Read more here.