Hide Any Element in the WordPress Editor

The Pro version of the PublishPress Capabilities plugin allows to hide any element inside the WordPress post editor. If you can find the CSS class or ID, then you can hide that element.

In the image below, you can see two metaboxes:

  • “Yoast SEO” from the Yoast SEO plugin.
  • “Editorial Comments” from the PublishPress plugin.
Metaboxes
Metaboxes

To hide one of these metaboxes, 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 both 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.