title: Disable the Category option for Custom Post Type in Wordpress
body: <p>I'm working on a site where the user can add videos to a slider using a custom post type. In reality, there are three different sliders and the videos that go inside each are determined by the category they're assigned. Here's the code that registers the cpt:</p>
  <pre><code>public function videos() {
      register_post_type( 'videos',
              [
              'labels'       =&gt; [
                'name'          =&gt; 'Videos',
                'singular_name' =&gt; 'Videos'
                ],
              'public'       =&gt; true,
              'show_in_rest' =&gt; true,
              'taxonomies'   =&gt; [ 'category' ],
              'rewrite'      =&gt; [ 'slug' =&gt; 'videos' ],
              'supports'     =&gt; [ 'title', 'custom-fields', 'editor', 'excerpt', 'thumbnail' ],
              'menu_icon'    =&gt; 'dashicons-format-video'
          ]
      );
    }
  }
  
  
  </code></pre>
  <p>I've added three different categories through WP Admin and I want to prevent users from being able to use  or create any other categories other than the ones I've created, so in order to to that, I'd like the &quot;Categories&quot; tab of the CPT menu inside the Admin bar to not be there, and I want the same for the '+ Add New Category' link in the custom post metabox. Bottom line, the user should have no business handling categories, other than assigning already existing ones to new posts.</p>
  <p>This seemed like a pretty simple and common fix so I'm surprised as I wasn't able to find a working solution on so far. <a href="https://wordpress.stackexchange.com/questions/282329/how-to-remove-default-tag-and-category-options-form-a-custom-post-type-admin-men">This</a> is very close to what I'm looking for, but as I haven't added the <code>register_taxonomy_for_object_type( 'category', 'custom_type' );</code> line, I don't have anything to remove. I'm very confused by all this and any help would be appreciated.</p>