• Guys, I have a custom post type called product, but when editing it several metaboxes show up and it’s cluttering the admin panel.

    How would I go about removing those metaboxes?

    I know that you can use remove_meta_box but that doesn’t work for custom post types.

    Thanks.

Viewing 1 replies (of 1 total)
  • remove_meta_box() does work on custom content types. It says so in te codex page so I’d have to think that’s right.

    I think that the ussie is that you are calling remove_meta_box() before the meta boxes are being added in the first place. What you can do to check this is check the add_action() call that you’re using to call the function that’s removing the meta boxes and set the priority of that to a very high nubmer so that it’s ran last.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove metaboxes from custom post type’ is closed to new replies.