Core Function
View Source on Trac ↗ use_block_editor_for_post_type()
use_block_editor_for_post_type( mixed $post_type ) Returns whether a post type is compatible with the block editor.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post_type string | The post type. Required |
Return Value
(bool)
Whether the post type can be edited with the block editor.
Function Information
Since Version
5.0.0
Source File
wp-includes/post.php
Advertisement