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.


String. Nothing.


woocommerce_calc_shipping_backwards_compatibility( $value );
$value (required)


Deprecated 2.6.0

Code of woocommerce_calc_shipping_backwards_compatibility() WC 5.2.2

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