Function wc_get_weight
Normalise weights, unify to cm then convert to wanted unit value
Usage: wc_get_weight(55, 'kg');
Parameters summary
mixed |
$weight |
|
mixed |
$to_unit |
'g', 'kg', 'lbs' |
Return value summary
float
|
Normalise weights, unify to cm then convert to wanted unit value
Usage: wc_get_weight(55, 'kg');
mixed |
$weight |
|
mixed |
$to_unit |
'g', 'kg', 'lbs' |
float
|