A WordPress-centric search engine for devs and theme authors



use_block_editor_for_post_type ›

Since5.0.0
Deprecatedn/a
apply_filters( 'use_block_editor_for_post_type', true, $post_type )
Parameters: (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
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_type', true, $post_type );