Change / Delete the default post type and category?

I’m developing a website with 3 different post types, and 4 different taxonomies to save the posts under.

The default post type and categories are unused in this template, and since many of authors are not very familiar with WordPress and we can’t always control them, i wish to delete, change or at least hide the categories and default post from them, so they have to post it under a custom type.

For example, someone creates a new post under ‘Breaking news’ type, and assigns it to News Taxonomy, this post won’t be categorized under any category (Uncategorized).

If he publishes this as a normal post type,it won’t be shown anywhere in the website.

Is it possible to work around this?

3 Answers
3

Yes this is possible with a very simple solution. Add this code snippet to your theme’s funtion.php

add_action('admin_menu','remove_default_post_type');

function remove_default_post_type() {
    remove_menu_page('edit.php');
}

More info: https://www.techjunkie.com/remove-default-post-type-from-admin-menu-wordpress/ or https://codex.wordpress.org/Function_Reference/remove_menu_page

Leave a Comment