wc_get_default_product_type_options()WC 7.9.0

Get default product type options.

No Hooks.

Return

Array.

Usage

wc_get_default_product_type_options();

Changelog

Since 7.9.0 Introduced.

wc_get_default_product_type_options() code WC 9.6.1

function wc_get_default_product_type_options() {
	return array(
		'virtual'      => array(
			'id'            => '_virtual',
			'wrapper_class' => 'show_if_simple',
			'label'         => __( 'Virtual', 'woocommerce' ),
			'description'   => __( 'Virtual products are intangible and are not shipped.', 'woocommerce' ),
			'default'       => 'no',
		),
		'downloadable' => array(
			'id'            => '_downloadable',
			'wrapper_class' => 'show_if_simple',
			'label'         => __( 'Downloadable', 'woocommerce' ),
			'description'   => __( 'Downloadable products give access to a file upon purchase.', 'woocommerce' ),
			'default'       => 'no',
		),
	);
}