WooCommerce::theme_support_includes()privateWC 3.3.0

Include classes for theme support.

Method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->theme_support_includes();

Changelog

Since 3.3.0 Introduced.

WooCommerce::theme_support_includes() code WC 8.7.0

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;
			case 'twentytwentyone':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-twenty-one.php';
				break;
			case 'twentytwentytwo':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-twenty-two.php';
				break;
			case 'twentytwentythree':
				include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-twenty-three.php';
				break;
		}
	}
}