WordPress at a glance
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.

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. Nothing.

Usage

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

Changelog

Deprecated 2.6.0

Code of woocommerce_calc_shipping_backwards_compatibility() WC 5.2.2

<?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';
}