Title: disable_categories_dropdown
Published: August 16, 2016
Last modified: April 28, 2025

---

# apply_filters( ‘disable_categories_dropdown’, bool $disable, string $post_type )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#wp--skip-link--target)

Filters whether to remove the ‘Categories’ drop-down from the post list table.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#parameters)󠁿

 `$disable`bool

Whether to disable the categories drop-down. Default false.

`$post_type`string

Post type slug.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#source)󠁿

    ```php
    if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) {
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-posts-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-posts-list-table.php#L475)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-posts-list-table.php#L475-L475)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Posts_List_Table::categories_dropdown()](https://developer.wordpress.org/reference/classes/wp_posts_list_table/categories_dropdown/)`wp-admin/includes/class-wp-posts-list-table.php` |

Displays a categories drop-down for filtering on the Posts list table.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/disable_categories_dropdown/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fdisable_categories_dropdown%2F)
before being able to contribute a note or feedback.