WooCommerce Code Reference

WeightUnit
in package

Enum class for the possible values of the `woocommerce_weight_unit` option, which determines the weight unit used throughout the store.

Tags
since
11.0.0

Table of Contents

GRAM  = 'g'
Gram.
KILOGRAM  = 'kg'
Kilogram.
OUNCE  = 'oz'
Ounce.
POUND  = 'lbs'
Pound.
get_all()  : array<string|int, string>
Returns all weight unit values defined in this class.

Constants

Methods

get_all()

Returns all weight 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>