How to disable categories in WordPress

Saul Goodman October 30, 2019 Loading...

This guide demonstrates how to disable categories in WordPress.

Add the following code to your functions.php.

add_action('init', 'my_unregister_categories');
function my_unregister_categories()
{
    register_taxonomy('category', []);
}

From now on, you won’t see “Categories” when adding or editing a post.

avatar
Welcome to KINDACODE. Have a nice day and code well!