WC_Meta_Box_Product_Data::get_product_type_options()
Return array of product type options.
Метод класса: WC_Meta_Box_Product_Data{}
Хуки из метода
Возвращает
Массив
.
Использование
$result = WC_Meta_Box_Product_Data::get_product_type_options();
Код WC_Meta_Box_Product_Data::get_product_type_options() WC Meta Box Product Data::get product type options WC 7.3.0
private static function get_product_type_options() { /* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */ return apply_filters( 'product_type_options', 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', ), ) ); /* phpcs: enable */ }