woocommerce_calc_shipping_backwards_compatibility()
Deprecated from version 2.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
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.
No Hooks.
Return
String
.
Usage
woocommerce_calc_shipping_backwards_compatibility( $value );
- $value (required)
- -
Changelog
Deprecated since | 2.6.0 |
woocommerce_calc_shipping_backwards_compatibility() woocommerce calc shipping backwards compatibility code WC 8.7.0
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'; }