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

return apply_filters( 'use_block_editor_for_post', $use_block_editor, $post );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.