WordPress开发者和主题制作者的搜索引擎



disable_categories_dropdown ›

Since4.6.0
已弃用n/a
apply_filters( 'disable_categories_dropdown', false, $post_type )
参数: (2)
  • (bool) $disable Whether to disable the categories drop-down. Default false.
    Required: Yes
  • (string) $post_type Post type slug.
    Required: Yes
定义在:
文档:

Filters whether to remove the 'Categories' drop-down from the post list table.





源码

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