| Server IP : 104.26.5.103 / Your IP : 216.73.217.51 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/plugins/woocommerce/src/Enums/ |
Upload File : |
<?php
declare( strict_types = 1 );
namespace Automattic\WooCommerce\Enums;
/**
* Enum class for the possible values of the `woocommerce_weight_unit` option,
* which determines the weight unit used throughout the store.
*
* @since 11.0.0
*/
final class WeightUnit {
/**
* Kilogram.
*
* @var string
*/
public const KILOGRAM = 'kg';
/**
* Gram.
*
* @var string
*/
public const GRAM = 'g';
/**
* Pound.
*
* @var string
*/
public const POUND = 'lbs';
/**
* Ounce.
*
* @var string
*/
public const OUNCE = 'oz';
/**
* Returns all weight unit values defined in this class.
*
* @since 11.0.0
*
* @return string[]
*/
public static function get_all(): array {
return array(
self::KILOGRAM,
self::GRAM,
self::POUND,
self::OUNCE,
);
}
}