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.


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;
Whether the post type can be edited or not.
Default: true
The post type being checked.

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

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

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

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

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

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