Remove metabox from WordPress menu editor page?


I’m trying to remove meta boxes added to the WordPress menu editor page from a theme, but can’t seem to figure out how to do it, I found this answer, but I must be doing something wrong as it isn’t working.

Below is what I want to remove:

enter image description here

My code:

add_action( 'do_meta_boxes', 'blm_remove_plugin_metaboxes' );

function blm_remove_plugin_metaboxes() {
    remove_meta_box('_menu_icon', 'nav-menus', 'side');

For the ID I have tried the following but none have worked:

  • _menu_icon
  • menu_icon
  • add-_menu_icon
  • add_menu_icon

Am I missing something?

, , , , Brett 3 years 2019-12-04T11:00:07-05:00 0 Answers 101 views 0

Leave an answer