WordPress at a glance
filter is not described

use_block_editor_for_post_type filter-hook . WP 5.0.0

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

Usage

add_filter( 'use_block_editor_for_post_type', 'filter_function_name_8377', 10, 2 );
function filter_function_name_8377( $use_block_editor, $post_type ){
	// filter...

	return $use_block_editor;
}
$use_block_editor(true/false)
Whether the post type can be edited or not.
Default: true
$post_type(string)
The post type being checked.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

use_block_editor_for_post_type()
use_block_editor_for_post_type
wp-admin/includes/post.php 2173
return apply_filters( 'use_block_editor_for_post_type', true, $post_type );

Где используется хук в ядре WP

Использование не найдено.