Remove WP custom metabox from pages or posts

Use this snippet in your Worpdress theme’s functions.php file to remove a metabox from one or more custom post types or the default wordpress pages and posts. This is particularly useful for plugins that output a metabox on all post types.

Modify custom-post-type to display the name of your custom post and metabox-name to display the name of your metabox.



To remove a single metabox from multiple posts (an array of posts):


Reference: adapted from