wc_current_theme_is_fse_theme()WC .

Check if the current theme is a block theme.

No Hooks.

Return

true|false.

Usage

wc_current_theme_is_fse_theme();

Changelog

Since . Introduced.
Since x.x.x

Code of wc_current_theme_is_fse_theme() WC 6.8.2

function wc_current_theme_is_fse_theme() {
	if ( function_exists( 'wp_is_block_theme' ) ) {
		return (bool) wp_is_block_theme();
	}
	if ( function_exists( 'gutenberg_is_fse_theme' ) ) {
		return (bool) gutenberg_is_fse_theme();
	}

	return false;
}