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



use_block_editor_for_post_type ›

Since5.0.0
已弃用n/a
apply_filters( 'use_block_editor_for_post_type', true, $post_type )
参数: (2)
  • (bool) $use_block_editor Whether the post type can be edited or not. Default true.
    Required: Yes
  • (string) $post_type The post type being checked.
    Required: Yes
定义在:
文档:

Filter whether a post is able to be edited in the block editor.





源码

return apply_filters( 'use_block_editor_for_post_type', true, $post_type );