WooCommerce Code Reference

ProductType
in package

Enum class for all the product types.

Table of Contents

EXTERNAL  = 'external'
External/Affiliate product type.
GROUPED  = 'grouped'
Grouped product type.
SIMPLE  = 'simple'
Simple product type.
VARIABLE  = 'variable'
Variable product type.
VARIATION  = 'variation'
Variation product type.
get_all()  : array<string|int, string>
Returns all product type values.

Constants

Methods

get_all()

Returns all product type values.

public static get_all() : array<string|int, string>
Tags
since
10.9.0
Return values
array<string|int, string>