Title: disable_formats_dropdown
Published: May 7, 2019
Last modified: May 20, 2026

---

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

## In this article

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

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

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

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

 `$disable`bool

Whether to disable the drop-down. Default false.

`$post_type`string

Post type slug.

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

    ```php
    if ( apply_filters( 'disable_formats_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/7.0/src/wp-admin/includes/class-wp-posts-list-table.php#L512)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-posts-list-table.php#L512-L512)

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

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

Displays a formats drop-down for filtering items.

  |

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

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | The `$post_type` parameter was added. | 
| [5.2.0](https://developer.wordpress.org/reference/since/5.2.0/) | Introduced. |

## User Contributed Notes

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