Automattic\WooCommerce\LayoutTemplates

LayoutTemplateRegistry::maybe_log_removal_warning │ private static │ WC 1.0

Log a warning about the removed compatibility class.

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

Хуков нет.

Возвращает

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

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

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

Код LayoutTemplateRegistry::maybe_log_removal_warning() WC 11.2.1

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\LayoutTemplates\LayoutTemplateRegistry is a temporary compatibility shim and will be removed soon. Block template extension APIs were deprecated in WooCommerce 10.9.0, and the block templates API was removed in WooCommerce 11.0.0 with no replacement.',
		array( 'source' => 'block-templates' )
	);
}