wc_current_theme_supports_woocommerce_or_fse()WC 6.0.0

Check if the current theme has WooCommerce support or is a FSE theme.

No Hooks.

Return

true|false.

Usage

wc_current_theme_supports_woocommerce_or_fse();

Changelog

Since 6.0.0 Introduced.

wc_current_theme_supports_woocommerce_or_fse() code WC 8.9.0

function wc_current_theme_supports_woocommerce_or_fse() {
	return (bool) current_theme_supports( 'woocommerce' ) || wc_current_theme_is_fse_theme();
}