On this page
apply_filters( 'use_block_editor_for_post', bool $use_block_editor, WP_Post $post )
Filters whether a post is able to be edited in the block editor.
Parameters
$use_block_editorbool-
Whether the post can be edited or not.
$postWP_Post-
The post being checked.
Source
File: wp-includes/post.php. View all references
return apply_filters( 'use_block_editor_for_post', $use_block_editor, $post );
Related
Used By
| Used By | Description |
|---|---|
| use_block_editor_for_post() wp-includes/post.php | Returns whether the post can be edited in the block editor. |
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/use_block_editor_for_post