Last active
December 26, 2015 14:29
-
-
Save wpspeak/7165539 to your computer and use it in GitHub Desktop.
Unregister metabox on Custom Post Type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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