How to programatically remove a panel from the settings?
-
Hi,
For the previous editor we had the possibility to remove a default meta box with remove_meta_box. That was useful if, for example, you wanted to create an alternative box for tags.
Is there anything equivalent for Gutenberg, i.e. to remove a panel from the settings on the right side? I was checking if you could simply hide the element, but all divs seem to have the class “components-panel__body” and no id. So there doesn’t seem to be a way how to select a particular panel. I would prefer, however, to remove the element already before rendering the page if that’s possible, not just with jQuery.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to programatically remove a panel from the settings?’ is closed to new replies.