diff --git a/src/BlockTemplatesController.php b/src/BlockTemplatesController.php index 68c9f73d738..632cc85a58b 100644 --- a/src/BlockTemplatesController.php +++ b/src/BlockTemplatesController.php @@ -325,7 +325,7 @@ function( $template ) { $template->description = BlockTemplateUtils::get_block_template_description( $template->slug ); } - if ( 'single-product' === $template->slug ) { + if ( str_contains( $template->slug, 'single-product' ) ) { if ( ! is_admin() && ! BlockTemplateUtils::template_has_legacy_template_block( $template ) ) { $new_content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );