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.

Top ↑

Source

File: wp-admin/includes/class-wp-posts-list-table.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.6.0 Introduced.

Top ↑

User Contributed Notes

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