WordPress at a glance
filter is not described

use_block_editor_for_post filter-hook . WP 5.0.0

Filter whether a post is able to be edited in the block editor.


add_filter( 'use_block_editor_for_post', 'filter_function_name_2689', 10, 2 );
function filter_function_name_2689( $use_block_editor, $post ){
	// filter...

	return $use_block_editor;
Whether the post can be edited or not.
The post being checked.

Where the hook is called

wp-admin/includes/post.php 2093
return apply_filters( 'use_block_editor_for_post', $use_block_editor, $post );

Where the hook is used (in WP core)

Does not used.