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.
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.
Leave a Reply