WordPress at Your Fingertips
function is not described

WC_Twenty_Seventeen::init() public WC 1.0

Theme init.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Twenty_Seventeen::init();

Code of WC_Twenty_Seventeen::init() WC 5.9.0

public static function init() {
	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
	remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );

	add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
	add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ), 10 );
	add_filter( 'woocommerce_enqueue_styles', array( __CLASS__, 'enqueue_styles' ) );
	add_filter( 'twentyseventeen_custom_colors_css', array( __CLASS__, 'custom_colors_css' ), 10, 3 );

	add_theme_support( 'wc-product-gallery-zoom' );
	add_theme_support( 'wc-product-gallery-lightbox' );
	add_theme_support( 'wc-product-gallery-slider' );
	add_theme_support(
		'woocommerce',
		array(
			'thumbnail_image_width' => 250,
			'single_image_width'    => 350,
		)
	);
}