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



disable_categories_dropdown › WordPress Filter Hooks

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

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





Source

if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) {