Remove metabox from WordPress menu editor page?

Question

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?

0
, , , , Brett 10 months 0 Answers 75 views 0

Leave an answer