WordPress at Your Fingertips
function is not described

WC_Template_Loader::unsupported_theme_product_page_init() private WC 3.3.0

Hook in methods to enhance the unsupported theme experience on Product pages.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Template_Loader::unsupported_theme_product_page_init();

Changelog

Since 3.3.0 Introduced.

Code of WC_Template_Loader::unsupported_theme_product_page_init() WC 5.7.1

private static function unsupported_theme_product_page_init() {
	add_filter( 'the_content', array( __CLASS__, 'unsupported_theme_product_content_filter' ), 10 );
	add_filter( 'post_thumbnail_html', array( __CLASS__, 'unsupported_theme_single_featured_image_filter' ) );
	add_filter( 'woocommerce_product_tabs', array( __CLASS__, 'unsupported_theme_remove_review_tab' ) );
	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
	remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
	add_theme_support( 'wc-product-gallery-zoom' );
	add_theme_support( 'wc-product-gallery-lightbox' );
	add_theme_support( 'wc-product-gallery-slider' );
}