use_block_editor_for_post_type
use_block_editor_for_post_type ( $post_type )
Parameters:- (string) post_type The post type.
Returns:- (bool) Whether the post type can be edited with the block editor.
Defined at:Change Log: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Returns 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.