Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Last active December 26, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpspeak/7165539 to your computer and use it in GitHub Desktop.
Save wpspeak/7165539 to your computer and use it in GitHub Desktop.
Unregister metabox on Custom Post Type
<?php
//* Unregister metabox on Custom Post Type
function afn_remove_custom_taxonomy() {
remove_meta_box('video-category'.'div', 'video', 'side' );
remove_meta_box('video-tag'.'div', 'video', 'side' );
// remove_meta_box($custom_taxonomy_slug.'div', $custom_post_type, 'side' );
// $custom_taxonomy_slug is the slug of your taxonomy, e.g. 'genre' )
// $custom_post_type is the "slug" of your post type, e.g. 'movies' )
}
add_action( 'admin_menu', 'afn_remove_custom_taxonomy' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment