wc_get_product_types()
Get product types.
Description Description
Return Return
(array)
Source Source
File: includes/wc-product-functions.php
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' ),
)
);
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2 | Introduced. |