Automattic\WooCommerce\Enums
WeightUnit::get_all
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() WeightUnit::get all code WC 11.0.0
public static function get_all(): array {
return array(
self::KILOGRAM,
self::GRAM,
self::POUND,
self::OUNCE,
);
}