# Disable Categories for Posts

> Removes categories from posts: the Categories menu, the editor panel and the column in the posts list.

- Type: PHP
- Runs: Run everywhere
- Category: [Disable Features](https://wpide.com/library/category/disable-features/)
- Tags: disable, categories, taxonomies
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-post-categories/

## Code

```php
add_action( 'init', function () {
    unregister_taxonomy_for_object_type( 'category', 'post' );
}, 99 );
```

## Notes

Existing assignments stay in the database; do not use it if your permalinks include %category%.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable Categories for Posts" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
