Core Function
View Source on Trac ↗ use_block_editor_for_post()
use_block_editor_for_post( mixed $post ) Returns whether the post can be edited in the block editor.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Post ID or WP_Post object. Required |
Return Value
(bool)
Whether the post can be edited in the block editor.
Function Information
Since Version
5.0.0
Source File
wp-includes/post.php
Advertisement