apply_filters( 'disable_media_categories_dropdown', bool $disable , string $post_type )
Filters whether to remove the ‘Media Categories’ drop-down from the media list table or grid.
Parameters
- $disable
-
Whether to disable the categories drop-down. Default false.
- $post_type
-
Post type slug.
Source
Changelog
| Version | Description |
|---|---|
| CP-2.2.0 | Introduced. CP-2.2.0 |