Automattic\WooCommerce\LayoutTemplates
LayoutTemplateRegistry::maybe_log_removal_warning
Log a warning about the removed compatibility class.
Method of the class: LayoutTemplateRegistry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = LayoutTemplateRegistry::maybe_log_removal_warning(): void;
LayoutTemplateRegistry::maybe_log_removal_warning() LayoutTemplateRegistry::maybe log removal warning code WC 11.0.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' )
);
}