| 1 |
<?php |
| 2 |
/** |
| 3 |
* Units |
| 4 |
* |
| 5 |
* Returns a multidimensional array of measurement units and their labels. |
| 6 |
* Unit labels should be defined in English and translated native through localization files. |
| 7 |
* |
| 8 |
* @version 1.0.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
defined( 'ABSPATH' ) || exit; |
| 12 |
|
| 13 |
return array( |
| 14 |
'weight' => array( |
| 15 |
'kg' => __( 'kg', 'fluent-cart' ), |
| 16 |
'g' => __( 'g', 'fluent-cart' ), |
| 17 |
'lbs' => __( 'lbs', 'fluent-cart' ), |
| 18 |
'oz' => __( 'oz', 'fluent-cart' ), |
| 19 |
), |
| 20 |
'dimensions' => array( |
| 21 |
'm' => __( 'm', 'fluent-cart' ), |
| 22 |
'cm' => __( 'cm', 'fluent-cart' ), |
| 23 |
'mm' => __( 'mm', 'fluent-cart' ), |
| 24 |
'in' => __( 'in', 'fluent-cart' ), |
| 25 |
'yd' => __( 'yd', 'fluent-cart' ), |
| 26 |
), |
| 27 |
); |
| 28 |
|