apply_filters( 'disable_formats_dropdown', bool $disable , string $post_type )
Filters whether to remove the ‘Formats’ drop-down from the post list table.
Parameters
-
$disable
bool -
Whether to disable the drop-down. Default false.
-
$post_type
string -
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 ) ) {
Changelog
Version | Description |
---|---|
5.5.0 | The $post_type parameter was added. |
5.2.0 | Introduced. |