WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Utils

BlockTemplateUtils::supports_block_templates() public WC 1.0

Checks to see if they are using a compatible version of WP, or if not they have a compatible version of the Gutenberg plugin installed.

{} It's a method of the class: BlockTemplateUtils{}

No Hooks.

Return

true|false.

Usage

$result = BlockTemplateUtils::supports_block_templates();

Code of BlockTemplateUtils::supports_block_templates() WC 6.1.1

public static function supports_block_templates() {
	if (
		( ! function_exists( 'wp_is_block_theme' ) || ! wp_is_block_theme() ) &&
		( ! function_exists( 'gutenberg_supports_block_templates' ) || ! gutenberg_supports_block_templates() )
	) {
		return false;
	}

	return true;
}