wc_get_product_types()
Get product types.
Hooks from the function
Return
Array
.
Usage
wc_get_product_types();
Changelog
Since 2.2 | Introduced. |
wc_get_product_types() wc get product types code WC 9.3.1
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' ), ) ); }