WordPress at a glance
function is not described

wc_update_220_shipping() WC 1.0

Update shipping options for 2.2

No Hooks.

Return

null. Nothing.

Usage

wc_update_220_shipping();

Code of wc_update_220_shipping() WC 5.2.2

<?php
function wc_update_220_shipping() {
	$woocommerce_ship_to_destination = 'shipping';

	if ( get_option( 'woocommerce_ship_to_billing_address_only' ) === 'yes' ) {
		$woocommerce_ship_to_destination = 'billing_only';
	} elseif ( get_option( 'woocommerce_ship_to_billing' ) === 'yes' ) {
		$woocommerce_ship_to_destination = 'billing';
	}

	add_option( 'woocommerce_ship_to_destination', $woocommerce_ship_to_destination, '', 'no' );
}