use_block_editor_for_post( int|WP_Post $post )
Returns whether the post can be edited in the block editor.
Parameters
- $post
-
(Required) Post ID or WP_Post object.
Return
(bool) Whether the post can be edited in the block editor.
Source
File: wp-includes/post.php
function use_block_editor_for_post( $post ) {
if ( class_exists( 'WP_Compat' ) ) {
WP_Compat::using_block_function();
}
return false;
}
Changelog
Version | Description |
---|---|
6.1.0 | Moved to wp-includes from wp-admin. |
5.0.0 | Introduced. |