PublishPress Capabilities Can Hide Metaboxes, and Any Editor Feature

Hide Metaboxes

Back in June, we released “Editor Features” in the PublishPress Capabilities plugin. This allowed you to hide almost any feature on the post editing screen.

Why do I say “almost”? Because the first release of could not hide metaboxes.

I'm happy to say that you can now use PublishPress Capabilities to hide metaboxes. This means that when users are writing a post, you can hide ANYTHING that you don't want them to see.

Why would you want to hide features from your users? Some people do this so that the post editing screen is cleaner and less confusing. Other people do this for security and to prevent users from changing some key settings.


What are Metaboxes?

“Metaboxes” is a strange name, but you have seen them often if you use WordPress.

When a user edits a post, the edit screen has several default boxes: “Status & visibility”, “”, “Categories”, “Tags”, etc. These boxes are metaboxes. Plugins can also add their own metaboxes.

The Pro version of the PublishPress Capabilities plugin now allows you to hide metaboxes for specific user roles.

In this image below, you can see ten metaboxes. They often take up most of the space in the post editing screen. With PublishPress Capabilities, you can hide any of these boxes. This will work with Gutenberg, , and any pagebuilder that shows metaboxes.

Metaboxes 10 1
Metaboxes 10 1

How to Hide Metaboxes

For these examples, we're starting with the PublishPress Capabilities Pro plugin installed.

In the image below, you can see two metaboxes:

Metaboxes
Metaboxes

To hide these metaboxes, follow these steps:

  • Go to “PublishPress”, then “Editor Features” in your WordPress admin menu.
  • Choose the user role you want to hide the metaboxes for. This image below includes the five default , plus also two Yoast SEO user roles.
Hide Metaboxes Roles
Hide Metaboxes Roles
  • Scroll down to the bottom of the screen and find the “Metaboxes” area.
  • If you don't see all your metaboxes, go to edit a post. Then reload this “Editor Features” screen.
Metaboxes
Metaboxes
  • Place a red X for any metabox you want to hide. In the image below, we are hiding both the “Yoast SEO” and “Editorial Comments” metaboxes.
Hide Metaboxes WordPress
Hide Metaboxes WordPress
  • Click “Save Changes”.
  • Visit the post editing screen as a user in the role you selected. You will no longer see the metaboxes you selected.

How to Hide Any Element

This is another approach that's available in PublishPress Capabilities Pro. You can hide any element by specifying the ID or class. In this example, we'll hide the same two Yoast SEO and Editorial Comments metaboxes. However, you really could hide anything on the WordPress post editing screen.

To hide a metabox, find the ID of this element. In this example, I'm using the “Inspector” tool in my browser. This image below shows that the ID is wpseo_meta.

Wpseo Meta
Wpseo Meta
  • Go to “PublishPress”, then “Editor Features” in your WordPress admin menu.
  • Choose the user role you want to hide the element for:
Hide Metaboxes Roles
Hide Metaboxes Roles
  • Scroll down to the bottom and find the custom items area.
  • Enter a name for this action.
  • Enter the ID or class.
Hide Yoast Div
Hide Yoast Div
  • Place a red X for any element you want to hide. In the image below, we are hiding the Yoast SEO box.
Yoast Seo Red X
Yoast Seo Red X
  • Click “Save Changes”.
  • Visit the post editing screen as a user in the role you selected. You will no longer see the elements you selected.

Join PublishPress today!

Join PublishPress today and you'll get powerful publishing and permissions plugins to improve your WordPress site.

Tags: Classic Editor, Editor Features, Featured Image, Gutenberg Editor, Meta boxes, WordPress User Roles, Yoast SEO


Leave a Reply

Your email address will not be published. Required fields are marked *

Professional publishing plugins for WordPress! Get PublishPress

  • SUBSCRIBE TO OUR NEWSLETTER
  • SEARCH THIS SITE