WordPress at Your Fingertips
function is not described

WooCommerce::add_thumbnail_support() private WC 1.0

Ensure post thumbnail support is turned on.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WooCommerce::add_thumbnail_support() WC 5.7.1

private function add_thumbnail_support() {
	if ( ! current_theme_supports( 'post-thumbnails' ) ) {
		add_theme_support( 'post-thumbnails' );
	}
	add_post_type_support( 'product', 'thumbnail' );
}