Imran Sayed

If you would only like to remove it from the WP Admin menu use the below code.

function wpsnipp_remove_default_taxonomies(){
global $pagenow;

register_taxonomy( 'post_tag', array() );
register_taxonomy( 'category', array() );

$tax = array('post_tag','category');

if($pagenow == 'edit-tags.php' && in_array($_GET['taxonomy'],$tax) ){
wp_die('Invalid taxonomy');
}
}
add_action('init', 'wpsnipp_remove_default_taxonomies');

If you want to completely unregister…

--

--

Imran Sayed

Imran Sayed

👤 Full Stack Developer at rtCamp, Speaker, Blogger, YouTuber, Wordpress, React, Node, Laravel Developer http://youtube.com/ImranSayedDev