WooCommerce Code Reference

DimensionUnit
in package

Enum class for the possible values of the 'woocommerce_dimension_unit' option.

Tags
since
11.0.0

Table of Contents

CENTIMETER  = 'cm'
Centimeter.
INCH  = 'in'
Inch.
METER  = 'm'
Meter.
MILLIMETER  = 'mm'
Millimeter.
YARD  = 'yd'
Yard.
get_all()  : array<string|int, string>
Returns all dimension unit values defined in this class.

Constants

Methods

get_all()

Returns all dimension unit values defined in this class.

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