apply_filters( 'disable_categories_dropdown', bool $disable, string $post_type )
Filters whether to remove the ‘Categories’ drop-down from the post list table.
Parameters
- $disable
-
(bool) Whether to disable the categories drop-down. Default false.
- $post_type
-
(string) Post type slug.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/disable_categories_dropdown