• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Remove Metabox from Post Editor of Custom Post Types

How to Remove Metabox from Post Editor of Custom Post Types

Recently in a site I built for a client, I need to remove some unnecessary metaboxes from only one Custom Post Type, namely Video. Looks like this is very easy to do than what I thought. If you’d like to remove the metabox from the Post post type, recently we’ve written a tutorial about this – How to Remove Metabox from WordPress Post Editor.

WordPress has a remove_meta_box function to remove any metabox from Post Edit screen. The function also accepts few parameters. Please refer to WordPress Codex page for more information on this.

remove-metabox

For example, I need to remove Video Categories and Video Tags metaboxes from the Post Editor of the Video CPT. Here’s the code I used.

This code can be placed in functions.php file of your child theme, or even better in functionality plugin.

Removing the metabox is a great way to have a cleaner Post Edit screen, thus avoid any confusion to the users or your clients. If you have any question, feel free to drop your comment below.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us