WC_Template_Loader::unsupported_theme_init() public WC 3.3.0
Hook in methods to enhance the unsupported theme experience on pages.
{} Это метод класса: WC_Template_Loader{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = WC_Template_Loader::unsupported_theme_init();
Список изменений
С версии 3.3.0 | Введена. |
Код WC_Template_Loader::unsupported_theme_init() WC Template Loader::unsupported theme init WC 5.0.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();
}
}
}