WordPress at Your Fingertips
function is not described

wc_update_260_options() WC 1.0

Update ship to countries options for 2.6

No Hooks.

Return

null. Nothing.

Usage

wc_update_260_options();

Code of wc_update_260_options() WC 5.5.2

<?php
function wc_update_260_options() {
	// woocommerce_calc_shipping option has been removed in 2.6.
	if ( 'no' === get_option( 'woocommerce_calc_shipping' ) ) {
		update_option( 'woocommerce_ship_to_countries', 'disabled' );
	}

	WC_Admin_Notices::add_notice( 'legacy_shipping' );
}