Warning: This function has been deprecated.
woocommerce_calc_shipping_backwards_compatibility( $value )
woocommerce_calc_shipping was an option used to determine if shipping was enabled prior to version 2.6.0. This has since been replaced with wc_shipping_enabled() function and the woocommerce_ship_to_countries setting.
Description Description
Return Return
(string)
Source Source
File: includes/wc-deprecated-functions.php
function woocommerce_calc_shipping_backwards_compatibility( $value ) {
if ( Constants::is_defined( 'WC_UPDATING' ) ) {
return $value;
}
return 'disabled' === get_option( 'woocommerce_ship_to_countries' ) ? 'no' : 'yes';
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |