wpseek.com
A WordPress-centric search engine for devs and theme authors



disable_formats_dropdown › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'disable_formats_dropdown', false, $post_type )
Parameters: (2)
  • (bool) $disable Whether to disable the drop-down. Default false.
    Required: Yes
  • (string) $post_type Post type slug.
    Required: Yes
Defined at:
Codex:

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





Source

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