woocommerce_get_weight()
Deprecated since 3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
No Hooks.
Returns
null. Nothing (null).
Usage
woocommerce_get_weight( $weight, $to_unit );
- $weight(required)
- .
- $to_unit(required)
- .
Changelog
| Deprecated since | 3.0 |
woocommerce_get_weight() woocommerce get weight code WC 10.5.0
function woocommerce_get_weight( $weight, $to_unit ) {
wc_deprecated_function( __FUNCTION__, '3.0', 'wc_get_weight' );
return wc_get_weight( $weight, $to_unit );
}