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

In this article

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

if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) {

Changelog

VersionDescription
5.5.0The $post_type parameter was added.
5.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.