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