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

File: wp-admin/includes/class-wp-media-list-table.php

View on GitHub



Changelog

Changelog
Version Description
CP-2.2.0 Introduced. CP-2.2.0