WC_Template_Loader::unsupported_theme_init()
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() WC Template Loader::unsupported theme init code WC 9.5.1
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(); } } }