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



use_block_editor_for_post ›

Since5.0.0
已弃用n/a
apply_filters( 'use_block_editor_for_post', $use_block_editor, $post )
参数: (2)
  • (bool) $use_block_editor Whether the post can be edited or not.
    Required: Yes
  • (WP_Post) $post The post 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', $use_block_editor, $post );