WC_Template_Loader::unsupported_theme_init()public staticWC 3.3.0

Hook in methods to enhance the unsupported theme experience on pages.

Method of the class: WC_Template_Loader{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Template_Loader::unsupported_theme_init();

Changelog

Since 3.3.0 Introduced.

WC_Template_Loader::unsupported_theme_init() code WC 8.7.0

public static function unsupported_theme_init() {
	if ( 0 < self::$shop_page_id ) {
		if ( is_product_taxonomy() ) {
			self::unsupported_theme_tax_archive_init();
		} elseif ( is_product() ) {
			self::unsupported_theme_product_page_init();
		} else {
			self::unsupported_theme_shop_page_init();
		}
	}
}