This website uses cookies to remember you and improve your experience. For more info see our Privacy Policy.

Choose which cookies you allow
Necessary Required for the site to work, such as remembering this choice. Always active

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Local SEO
  • MyBookTable
    • MyBookTable Support
  • Contact
  • Hire Us

Mobile Menu

  • Menu
  • Skip to right header navigation
  • Skip to main content

Stormhill Media

Custom websites for every type of business

Header Right

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Local SEO
  • MyBookTable
    • MyBookTable Support
  • Contact
  • Hire Us

Remove Meta Box from Admin Form (post, page, custom)

Home » Code Snippets » Remove Meta Box from Admin Form (post, page, custom)

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' );
« Previous
Next »

Site Footer

Quick Links:

  • Contact Us
  • Pricing & Services
  • Sitemap
  • Terms/Conditions
  • Privacy Policy
  • Business Websites
  • Author Websites
  • SEO Services
(903) 213-5266‬

Copyright © 2026 · Stormhill Media All Rights Reserved.
Website by Stormhill Media
Log in