use_block_editor_for_post_type ( $post_type )
- (string) $post_type The post type.
- (bool) Whether the post type can be edited with the block editor.
- Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Return whether a post type is compatible with the block editor.
The block editor depends on the REST API, and if the post type is not shown in the
REST API, then it won't work with the block editor.