WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WooCommerce::theme_support_includes() private WC 3.3.0

Include classes for theme support.

Это метод класса: WooCommerce{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->theme_support_includes();

Список изменений

С версии 3.3.0 Введена.

Код WooCommerce::theme_support_includes() WC 4.5.2

woocommerce/includes/class-woocommerce.php
<?php
private function theme_support_includes() {
	if ( wc_is_wp_default_theme_active() ) {
		switch ( get_template() ) {
			case 'twentyten':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-ten.php';
				break;
			case 'twentyeleven':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-eleven.php';
				break;
			case 'twentytwelve':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-twelve.php';
				break;
			case 'twentythirteen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-thirteen.php';
				break;
			case 'twentyfourteen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-fourteen.php';
				break;
			case 'twentyfifteen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-fifteen.php';
				break;
			case 'twentysixteen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-sixteen.php';
				break;
			case 'twentyseventeen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-seventeen.php';
				break;
			case 'twentynineteen':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-nineteen.php';
				break;
			case 'twentytwenty':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-twenty.php';
				break;
		}
	}
}