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 6.8.2

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' ),
		)
	);
}