Code Element Rt

Remove Default Categories and Tags from WordPress Posts

You can remove default categories and tags in the WordPress admin by using the native unregister_taxonomy_for_object_type WordPress function.

/**
 * Remove Default Post Categories & Tags
 */
add_action( 'init', function () {
    unregister_taxonomy_for_object_type( 'category', 'post' );
    unregister_taxonomy_for_object_type( 'post_tag', 'post' );
});