A WordPress-centric search engine for devs and theme authors



use_block_editor_for_post ›

Since5.0.0
Deprecatedn/a
apply_filters( 'use_block_editor_for_post', $use_block_editor, $post )
Parameters: (2)
  • (bool) $use_block_editor Whether the post can be edited or not.
    Required: Yes
  • (WP_Post) $post The post being checked.
    Required: Yes
Defined at:
Codex:

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





Source

return apply_filters( 'use_block_editor_for_post', $use_block_editor, $post );