WordPress at Your Fingertips
function is not described

WooCommerce::theme_support_includes() private WC 3.3.0

Include classes for theme support.

{} It's a method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.3.0 Introduced.

Code of WooCommerce::theme_support_includes() WC 5.7.1

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;
		}
	}
}