1. 首页
  2. WordPress钩子手册

disable_categories_dropdown

apply_filters( ‘disable_categories_dropdown’, bool $disable, string $post_type )

过滤器::筛选是否从post列表表中删除“Categories”下拉列表。
Filter Hook: Filters whether to remove the ‘Categories’ drop-down from the post list table.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$disable (bool) 是否禁用“类别”下拉列表。默认为false。
$post_type (string) 柱状弹头。

源码(Source)


更新版本 源码位置 使用 被使用
4.6.0 wp-admin/includes/class-wp-posts-list-table.php:447 1 0

disable_categories_dropdown 为WP2原创文章,链接:https://www.wp2.cn/hook/disable_categories_dropdown/