WordPress at Your Fingertips
function is not described

woocommerce_calc_shipping_backwards_compatibility() WC 1.0

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.

the woocommerce_ship_to_countries setting.

No Hooks.

Return

String.

Usage

woocommerce_calc_shipping_backwards_compatibility( $value );
$value (required)
-

Changelog

Deprecated 2.6.0

Code of woocommerce_calc_shipping_backwards_compatibility() WC 6.1.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';
}