wc_get_default_product_type_options()
Get default product type options.
Хуков нет.
Возвращает
Массив.
Использование
wc_get_default_product_type_options();
Список изменений
| С версии 7.9.0 | Введена. |
Код wc_get_default_product_type_options() wc get default product type options WC 10.3.4
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',
),
);
}