use_block_editor_for_post filter-hookWP 5.0.0

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

Usage

add_filter( 'use_block_editor_for_post', 'wp_kama_use_block_editor_for_post_filter', 10, 2 );

/**
 * Function for `use_block_editor_for_post` filter-hook.
 * 
 * @param bool    $use_block_editor Whether the post can be edited or not.
 * @param WP_Post $post             The post being checked.
 *
 * @return bool
 */
function wp_kama_use_block_editor_for_post_filter( $use_block_editor, $post ){

	// filter...
	return $use_block_editor;
}
$use_block_editor(true|false)
Whether the post can be edited or not.
$post(WP_Post)
The post being checked.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.