WordPress at Your Fingertips
function is not described

wp_enable_block_templates() WP 5.8.0

Enable the block templates (editor mode) for themes with theme.json by default.

No Hooks.

Return

null. Nothing.

Usage

wp_enable_block_templates();

Changelog

Since 5.8.0 Introduced.

Code of wp_enable_block_templates() WP 5.8.2

function wp_enable_block_templates() {
	if ( WP_Theme_JSON_Resolver::theme_has_support() ) {
		add_theme_support( 'block-templates' );
	}
}