Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::maybe_log_removal_warning │ private static │ WC 1.0

Log a warning about the removed compatibility class.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = BlockRegistry::maybe_log_removal_warning(): void;

Код BlockRegistry::maybe_log_removal_warning() WC 11.2.2

private static function maybe_log_removal_warning(): void {
	if ( self::$removal_warning_logged || ! function_exists( 'wc_get_logger' ) ) {
		return;
	}

	self::$removal_warning_logged = true;

	wc_get_logger()->warning(
		'Automattic\WooCommerce\Admin\Features\ProductBlockEditor\BlockRegistry is a temporary compatibility shim and will be removed soon. Product editor extension APIs were deprecated in WooCommerce 10.9.0, and the product block editor was removed in WooCommerce 11.0.0 with no replacement.',
		array( 'source' => 'product-block-editor' )
	);
}