ACF_Admin_Internal_Post_Type::use_block_editor_for_post_typepublicACF 5.8.0

Prevents the block editor from loading when editing an ACF field group.

Метод класса: ACF_Admin_Internal_Post_Type{}

Хуков нет.

Возвращает

true|false.

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

$ACF_Admin_Internal_Post_Type = new ACF_Admin_Internal_Post_Type();
$ACF_Admin_Internal_Post_Type->use_block_editor_for_post_type( $use_block_editor, $post_type );
$use_block_editor(true|false) (обязательный)
Whether the post type can be edited or not.
По умолчанию: true
$post_type(строка) (обязательный)
The post type being checked.

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

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

Код ACF_Admin_Internal_Post_Type::use_block_editor_for_post_type() ACF 6.4.2

public function use_block_editor_for_post_type( $use_block_editor, $post_type ) {
	if ( $post_type === $this->post_type ) {
		return false;
	}

	return $use_block_editor;
}