wc_get_default_product_type_options()
Get default product type options.
No Hooks.
Returns
Array.
Usage
wc_get_default_product_type_options();
Changelog
| Since 7.9.0 | Introduced. |
wc_get_default_product_type_options() wc get default product type options code WC 10.4.3
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',
),
);
}