On this page
apply_filters( 'disable_formats_dropdown', bool $disable, string $post_type )
Filters whether to remove the ‘Formats’ drop-down from the post list table.
Parameters
$disablebool-
Whether to disable the drop-down. Default false.
$post_typestring-
Post type slug.
Source
File: wp-admin/includes/class-wp-posts-list-table.php. View all references
if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) {
Related
Used By
| Used By | Description |
|---|---|
| WP_Posts_List_Table::formats_dropdown() wp-admin/includes/class-wp-posts-list-table.php | Displays a formats drop-down for filtering items. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/disable_formats_dropdown