Hides meta boxes in admin forms as needed.
1. This is great for when a plugin adds a metabox to your post or page form and you want to hide it.
2. the tricky part is finding the name of the box – as with the magicmembersdiv box in example below. You can usually find this by searching the plugin for the add_meta_box() call where they add the box – i.e. add_meta_box(‘magicmemberdiv, ‘….’,’…….’,…)
// hide admin meta boxes that we are not using function remove_themeta_box() { remove_meta_box( 'magicmemberdiv', 'post', 'side' ); remove_meta_box( 'magicmemberdiv', 'page', 'side' ); remove_meta_box( 'magicmemberdiv', 'homepage', 'side' ); remove_meta_box( 'magicmemberdiv', 'testimonials', 'side' ); remove_meta_box( 'magicmemberdiv', 'blogs', 'side' ); remove_meta_box( 'magicmemberdiv', 'events', 'side' ); remove_meta_box( 'magicmemberdiv', 'discounts', 'side' ); remove_meta_box( 'magicmemberdiv', 'videos', 'side' ); remove_meta_box( 'magicmemberdiv', 'audios', 'side' ); } add_action( 'admin_menu', 'remove_themeta_box' );