WordPress at a glance
function is not described

wc_get_product_types() WC 2.2

Get product types.

Hooks from the function
Return

Array.

Usage

wc_get_product_types();

Changelog

Since 2.2 Introduced.

Code of wc_get_product_types() WC 5.0.0

<?php
function wc_get_product_types() {
	return (array) apply_filters(
		'product_type_selector',
		array(
			'simple'   => __( 'Simple product', 'woocommerce' ),
			'grouped'  => __( 'Grouped product', 'woocommerce' ),
			'external' => __( 'External/Affiliate product', 'woocommerce' ),
			'variable' => __( 'Variable product', 'woocommerce' ),
		)
	);
}