Automattic\WooCommerce\Enums

WeightUnit::get_allpublic staticWC 11.0.0

Returns all weight unit values defined in this class.

Method of the class: WeightUnit{}

No Hooks.

Returns

String[].

Usage

$result = WeightUnit::get_all(): array;

Changelog

Since 11.0.0 Introduced.

WeightUnit::get_all() code WC 11.0.0

public static function get_all(): array {
	return array(
		self::KILOGRAM,
		self::GRAM,
		self::POUND,
		self::OUNCE,
	);
}